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

匿名 (未验证) 提交于 2019-12-03 08:41:19

问题:

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

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.

回答1:

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.


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



回答2:

Newer versions of IntelliJ or Android studio the dialogs can be found under Settings/Editor in Formatting section



标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!