简体   繁体   中英

IntelliJ IDEA can not auto import

I'm using 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. I have to import it mannully.

在此处输入图片说明

在此处输入图片说明

Other class in java.sql.* works fine.

在此处输入图片说明

How to sovle this problem? Thank you very much.

It might be that the class is excluded from Auto Import

  • open the Settings Dialog CTRL-ALT-S
  • navigate to Editor -> General -> Auto Import
  • on the right side there is a list Exclude from Import and Completion where

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