Try   HackMD

[Eclipse] Set Java & xml Content Assist

tags: eclipse ide

設定Java的Content Assist

1. Steps步驟:

Eclipse ➡️ windows ➡️ Preferences ➡️ Java ➡️ Editor ➡️ Content Assist ➡️ Auto activation triggers for Java



2. Enter in "Auto activation triggers for Java":

輸入以下這串文字到「Auto activation triggers for Java」這個欄位

_.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →



3. Tick the checkbox "Disable insertion triggers except 'Enter' "

So,when you want to choose the suggestion of Eclipse, you will use "Enter".

把 Disable insertion triggers except 'Enter' 這欄打勾,就不會出現誤觸狀況,當你不想要選擇Eclipse給的選項時,就不要按Enter鍵。


4. Done

Don't forget to click " Apply and Close " ❗❗


After setting this. No matter what you type, Eclipse will auto detect in every moment.

把上方那串輸入到Auto activation triggers fo Java這個位置,之後Eclipse就會自動幫你偵測這些字,基本上就是打什麼它都會幫你猜了!


補充:

xml檔的Content Assist

<=:.abcdefghijklmnopqrstuvwxyz(,