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

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

问题描述

所以我pressed 不显示在未来该对话框(从网络采取截图)。

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:

在的IntelliJ(可能的Andr​​oid棚等基础的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 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可以重新启用这些对话框的设置/编辑/一般的:

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

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

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