简体   繁体   English

IntelliJ Idea 13.0.1社区版中的自动完成代码不如Eclipse有用吗?

[英]Auto-complete code in IntelliJ Idea 13.0.1 Community Edition not as useful as Eclipse?

Is there any way for me to make IntelliJ give me better recommendations for coding in Java SE? 有什么办法可以让IntelliJ为我提供更好的Java SE编码建议吗? In Eclipse, if I start typing in ' System.out.print ' it will popup a window with options like System.out.println , System.out.printf , etc. When I do this in IntelliJ , it doesn't do the suggestion popup box as much. 在Eclipse中,如果我开始输入' System.out.print ',它将弹出一个窗口,其中包含System.out.printlnSystem.out.printf等选项。当我在IntelliJ执行此操作时,它不会执行建议弹出框尽可能多。 The most I can get IntelliJ to do is guess simple things like the words: Final, Class, Interface, and so on. IntelliJ要做的最多就是猜测简单的事情,比如:Final,Class,Interface等等。

Eclipse has a built in compiler, but for IntelliJ you have to specify one. Eclipse有一个内置的编译器,但对于IntelliJ,你必须指定一个。 Without this it won't make suggestions. 没有这个,它就不会提出建议。 Make sure you have a JDK imported with File -> Project Structure -> SDK 确保使用File - > Project Structure - > SDK导入JDK

If you have JDK configured I would clear the caches with File -> Invalidate Caches/Restart ... 如果你配置了JDK,我会用File - > Invalidate Caches/Restart ...来清除缓存Invalidate Caches/Restart ...

What you should see is 你应该看到的是什么

在此输入图像描述

BTW There are many templates and if you type sout + tab, it will include System.out.println() See File -> Settings -> Live Templates -> output BTW有很多模板,如果你输入sout + tab,它将包括System.out.println()参见File - > Settings - > Live Templates - > output

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

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