开发者

Eclipse: ctrl+space completion for main no longer works

I use Eclipse (3.7.1) and I like ctrl+space autocompletion. It used to work for generating a static public void main(String[] arg开发者_运维百科s) method but no longer does; instead if I type mai or main and hit Ctrl-space, I get a bunch of Main classes.

What's going on, and how can I fix this?


for what it's worth, I have Lombok 0.9.3 installed, so I wonder if that's messing things up.


Had you been playing around with content assist settings?

One quick try would be going to Window->Preferences and then choosing Java->Editor->Content Assist.

On Content assist property pane press 'Restore Defaults'

or

set "Sort proposals" to "alphabetically" - this should restore default content assist behavior.


In your eclipse Go to Windows-->Preferences --> Java --> Editor --> Content Assist --> Advanced. Here you have to make sure “Java Proposals” is ticked. I am sure it will work,it worked for me.


You could select checkbox public static void main(String[] args) in New Java Class menu.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜