Change IDE-level default Code Style scheme
I prefer to ALWAYS have my braces on a separate line, but when I go to Settings->Editor->Code Style->Java, the "Wrapping and Braces" tab appears to inhibit me from making changes, viz:
Note the "Braces placement" item has them all set to "End of Line" with no apparent way to change these.
Or am I missing something?
Also, the page https://www.jetbrains.com/help/idea/configuring-code-style.html notes:
-
In the Default scheme (IDE-level scheme), the settings that you configure apply to all existing projects that have the Default code style scheme selected.
These settings are stored in the codestyles folder under the IntelliJ IDEA configuration directory and are not shared through VCS.
This is not true for me, as my Idea config dir (~
Thanks in advance for any insights
请先登录再写评论。
Hi Winston,
Regarding the Wrapping and Braces settings, the values that you mentioned can be changed by clicking on them and selecting a different value in the drop-down that appears (as you must've already figured out yourself):
As for the missing codestyles directory, try looking inside jba_config on the same config dir level. It is used by the 'Settings Sync' plugin if you happen use it, and some of the configuration settings go there instead.