The default selection is Intellij built-in code style. It's not Sun or Google scheme, it's a different one.
Answer from Julieta on Stack Overflowjava - What is the Default Code Style -> Scheme in IntelliJ - Stack Overflow
How to configure Google Java Code Formatter in Intellij IDEA 17? - Stack Overflow
java - Enable Code Style in IntelliJ IDEA - Stack Overflow
Strict Code Formatter
The default selection is Intellij built-in code style. It's not Sun or Google scheme, it's a different one.
You can set a certain scheme to be a project level or the IDE level. Project-level is applied only for current project - IDE-level will be used by all the projects. Default is the IDE level scheme.
Check also the documentation about managing code styles in IDE.
This problem can be solve installing the google-java-format Plugin.
Open plugins window (CTRL+Shift+A): plugins
Click on browse repositories.
Search for google-java-format
Install the plugin.
Restart the IDE.
Enable the plugin executing the action (Ctrl+Shift+A): Reformat with google-java-format Update: in the newer version of the plugin select Reformat since the plugin overrides / enhances the functionality of the standard "Reformat" command.
Additional notes from the google-java-format README
The plugin will be disabled by default. To enable it in the current project, go to File→Settings...→google-java-format Settings (or IntelliJ IDEA→Preferences...→Other Settings→google-java-format Settings on macOS) and check the Enable google-java-format checkbox. (A notification will be presented when you first open a project offering to do this for you.)
To enable it by default in new projects, use File→Other Settings→Default Settings....
As mentioned Here, Download the intellij-java-google-style.xml file from the This Link.
Then in Intellij, go Under Settings -> Editor -> Code Style. there in Scheme settings (settings icon on right side) -> import schemes-> intellij idea code style xml. Select the xml downloaded in first step. then in Scheme dropdown select the GoogleStyle IDE (newly added style). Click on apply and close.