Iai*_*der 191 java autocomplete intellij-idea
我是一个迁移的Eclipse IDE用户,我正在学习IntelliJ IDEA 9.
默认情况下,Eclipse IDE将不会使用星号导入,直到从同一个包导入99个类,因此它几乎不会发生.
但IntelliJ IDEA似乎太热衷于这样做了,我无法弄清楚如何禁用它.
例如,在输入+ JList
然后自动导入之后,将导入整个包而不是我指定的类.ALTENTERjavax.swing
我尝试javax.swing
从自动完成中排除,但这只会阻止任何 Swing类的建议,这会适得其反.
Col*_*ert 297
您可以在此处设置此设置.
在IDEA 14 +中,序列是:
Settings
> Editor
> Code Style
> Java
> Imports
>Class count to use import with '*'
在较旧版本的IDEA中:
Settings
- > Java
- > Code Style
- > Imports
- >Class count to use import with '*'
无法禁用该功能.您需要将其设置为较高的值,例如99.
在2016.1.1版本您还应该删除下面的行Packages to Use Import with '*'
,例如import javax.*;
ROM*_*eer 60
IntelliJ IDEA:
14&15&16 EAP
File > Settings... > Editor > Code Style > Java > Imports
>在General
区域中添加一个大数字Class count to use import with '*':
/Names count to use static import with '*':
IntelliJ IDEA:
12和13
File > Settings... > Code Style > Java > Imports
>在General
区域中添加一个大数字Class count to use import with '*':
PS:Java
是Code Style
在路径之后.
归档时间: |
|
查看次数: |
55241 次 |
最近记录: |