How to disable annoying format dialog
Answered
According to the help page for "Reformat dialog" (shouldn't it be "Format dialoag"?, but anyway...):
The dialog appears when you press ⌥⇧⌘L in the editor of the current file. If you choose Code | Reformat Code from the main menu or press ⌥⌘L, IntelliJ IDEA tries to reformat the source code of the specified scope automatically.
At some ploint in the past I recall selecting an option like "always show dialog" when pressing CMD+OPT+L.
How do I undo that, so pressing CMD+OPT+L just formats immediately without showing a dialog, and if I want the dialog I press CMD+OPT+SHIFT+L.
Please sign in to leave a comment.
Please check in Preferences | Keymap that ⌥⌘L points to "Code | Reformat Code".
Yes: ⌥⌘L points to "Code | Reformat Code".
Could you please clarify IDEA build you using, I recall "always show dialog" option was made obsolete in 2015.
I'm using 2019.2.3 CE.
Installed on a brand new mac within the last few months.
Does it help if you remap CMD+OPT+SHIFT+L to a different shortcut?
CMD+SHIFT+L is mapped to "Reformat code"
CMD+OPT+SHIFT+L is mapped to "Show reformat dialog"
Using these shortcuts within an editing pane works as expected.
However, using these shortcuts in the project pane, eg when selecting src/main/java to format all java code, CMD+SHIFT+L shows the dialog and CMD+OPT+SHIFT+L does nothing (yes, I have checked that it really does nothing instead of formatting without showing the dialog).
I want the shortcuts to work as per above, especially CMD+SHIFT+L formatting without showing to the dialog.
Hi. "Show reformat dialog" action has never worked with Project View. If you check Code top menu you can see it grayed out.