简体   繁体   English

IntelliJ IDEA无法自动导入

[英]IntelliJ IDEA can not auto import

I'm using IntelliJ 2016.1.2 . 我正在使用IntelliJ 2016.1.2

When I create a java.sql.Timestamp and enter alt + enter for auto import, my IntelliJ seems can not give me a hint about it. 当我创建一个java.sql.Timestamp并输入alt + enter进行自动导入时,我的IntelliJ似乎无法给我任何提示。 I have to import it mannully. 我必须手动将其导入。

在此处输入图片说明

在此处输入图片说明

Other class in java.sql.* works fine. java.sql。*中的其他类工作正常。

在此处输入图片说明

How to sovle this problem? 如何解决这个问题? Thank you very much. 非常感谢你。

It might be that the class is excluded from Auto Import 该类可能被排除在“ Auto Import

  • open the Settings Dialog CTRL-ALT-S 打开Settings Dialog CTRL-ALT-S
  • navigate to Editor -> General -> Auto Import 导航到Editor -> General -> Auto Import
  • on the right side there is a list Exclude from Import and Completion where 在右侧有一个列表, Exclude from Import and CompletionExclude from Import and Completion其中

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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