I'm using Android studio and I just configured Java code style ( File>Settings>Code Style>Java>Wrapping and Braces
) in a way that displays "{" in new line after class and method definitions.
However, by click on Apply and OK buttons nothing happens although in preview I saw the change. I restarted the IDE but nothing has changed :(
Any suggestion would be appreciated. Thanks
This only sets the coding style - it does not apply it automatically.
To reformat your code manually, press Ctrl + Alt + L (or using the menu Code | Reformat code...
). To reformat the whole source code of your module, just select the module folder first.
More information about reformating source code can be found on the IntelliJ Web Help
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.