简体   繁体   中英

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).

重新格式化代码对话框

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.

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 :

在此输入图像描述

可以在“格式化”部分的“设置/编辑器”下找到更新版本的IntelliJ或Android工作室

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM