IntelliJ IDEA:如何撤销重新格式化代码/优化导入对话框? [英] IntelliJ IDEA: how to revoke reformat code / optimize imports dialog?

查看:73
本文介绍了IntelliJ IDEA:如何撤销重新格式化代码/优化导入对话框?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我按下了以后不再显示这个对话框(截取自网络).

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.

推荐答案

更新 2015/10:

在当前版本的 IntelliJ(可能还有 Android Studio 和其他基于 IntelliJ 的 IDE)中,似乎不再有此选项,因为它不需要.

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 不再显示对话框,而是直接重新格式化文件并提示您可以显示使用 +Alt+Shift+L 的对话框.该对话框不再包含不再显示选项.

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

对于较旧的 IntelliJ 版本,可以在 Settings/Editor/General 中重新启用这些对话框:

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

这篇关于IntelliJ IDEA:如何撤销重新格式化代码/优化导入对话框?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆