Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IntelliJ IDEA: how to revoke reformat code / optimize imports dialog?

So I've pressed Do not show this dialog in the future (screenshot taken from the web).

Reformat code dialog

It's been a while and now I want to change default reformat behavior.

I can't seem to find an option to show this dialog again.

like image 820
Yaroslav Mytkalyk Avatar asked Jan 02 '15 19:01

Yaroslav Mytkalyk


1 Answers

Update 2015/10:

In current versions of IntelliJ (and likely Android studio and other IntelliJ based IDEs) there no longer seems to be this option as it is not needed.

+Alt+L no longer shows the dialog, instead it directly reformats the file and gives you a hint that you can display the dialog using +Alt+Shift+L. That dialog no longer includes Do not show again option.

enter image description here


For older IntelliJ versions these dialogs can be re-enabled in Settings/Editor/General:

enter image description here

like image 175
Bohuslav Burghardt Avatar answered Oct 16 '22 15:10

Bohuslav Burghardt