Eclipse alt + / Solution syntax without prompting

Eclipse recently on a company computer does not automatically prompt function, not all do not suggest that the most pressing "alt + /" key will produce prompt, but when I was evil and syso main method in java projects " alt + / "will fail, today in the online search results a bit, there are several ways to look at:
    1, no hint second method for situation: in order to open eclipse above windows --preferences --java --editor - - content assist, there is a line in the upper right "select the proposal kinds contained in the 'default' content assist list" below, check the Java Prolosals box, you can save out.

 


     2, this method is the abbreviation for the outgoing, without prompting (e.g.: no prompt played syso): windows --preferences --java --editor sequentially open eclipse above - content assist, at the right part of the partial areas find "Auto activation triggers for java:" this one, followed by a text box, enter the letters abcd behind the text box, and then click applay -> OK to save and exit, select export File - General - export and then select preferences select export all box (below do not control), and specify the name and path of the export file (note that only the export file format .epf). Then find the file you just exported epf file in your specified path, (you can use Notepad) to open it, and then find abcd just entered (or abc), then add the rest later in the 22 English letters, saved, then the eclipse of the import feature to import the file into eclipse, you can achieve word association prompts.

 

  3、依次打开eclipse上面的windows ——preferences ——General —— Keys, 在Scheme的下面有一个搜索框,在搜索框里面输入“Content asist”(我的Eclipse在这个搜索框里不能输入,下面的按钮抢占了焦点,所以我选择了复制粘贴,注意搜索时注意大小写),选中“Content asist”这一项后,将Binding项改为“ALT+/”(按下“/”键即可更改),将When项选择成Editing Text即可;

 

 4.依次打开windows ——preferences ——java ——editor —— content assist —— advanced,选中右下方复选框的Template Proposals一项即可。

转自:http://www.apkbus.com/android-104663-1-1.html

Guess you like

Origin www.cnblogs.com/blacka/p/10944025.html