You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10-9Lines changed: 10 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,23 +35,24 @@ is available from the plugin repository. To install it, go to your IDE's
35
35
settings and select the `Plugins` category. Click the `Marketplace` tab, search
36
36
for the `google-java-format` plugin, and click the `Install` button.
37
37
38
-
The plugin will be disabled by default. To enable it in the current project, go
39
-
to `File→Settings...→google-java-format Settings` (or `IntelliJ
40
-
IDEA→Preferences...→Other Settings→google-java-format Settings` on macOS) and
41
-
check the `Enable google-java-format` checkbox. (A notification will be
42
-
presented when you first open a project offering to do this for you.)
38
+
The plugin will be disabled by default. To enable,
39
+
[open the Project settings](https://www.jetbrains.com/help/idea/configure-project-settings.html),
40
+
then click "google-java-format Settings" and check the "Enable
41
+
google-java-format" checkbox.
43
42
44
-
To enable it by default in new projects, use `File→Other Settings→Default
45
-
Settings...`.
43
+
To enable it by default in new projects,
44
+
[open the default settings for new projects](https://www.jetbrains.com/help/idea/configure-project-settings.html#new-default-settings)
45
+
and configure it under "Other Settings/google-java-format Settings".
46
46
47
47
When enabled, it will replace the normal `Reformat Code` and `Optimize Imports`
48
48
actions.
49
49
50
50
#### IntelliJ JRE Config
51
51
52
52
The google-java-format plugin uses some internal classes that aren't available
53
-
without extra configuration. To use the plugin, go to `Help→Edit Custom VM
54
-
Options...` and paste in these lines:
53
+
without extra configuration. To use the plugin, you need to
54
+
[add some options to your IDE's Java runtime](https://www.jetbrains.com/help/idea/tuning-the-ide.html#procedure-jvm-options).
55
+
To do that, go to `Help→Edit Custom VM Options...` and paste in these lines:
0 commit comments