1. 程式人生 > >android開發中eclipse裡xml開發的自動提示和使用幫助快捷鍵提示

android開發中eclipse裡xml開發的自動提示和使用幫助快捷鍵提示

Eclipse for android 實現程式碼自動提示智慧提示功能,介紹 Eclipse for android 編輯器中實現兩種主要檔案 java 與 xml 程式碼自動提示功能,解決 eclipse 程式碼提示失效、eclipse 不能自動提示、eclipse 沒有程式碼提示的問題。eclipse xml 自動提示,eclipse java 自動提示,eclipse 自動提示功能,eclipse 智慧提示,eclipse 程式碼提示功能,eclipse 設定程式碼提示,eclipse code auto-prompt function ,eclipse android 程式碼提示。

Eclipse for android 設定程式碼提示功能

1、設定 java 檔案的程式碼提示功能

打 開 Eclipse 依次選擇 Window > Preferences > Java > Editor - Content Assist > Auto activation triggers for Java ,設定框中預設是一個點,

現在將它改為:

      .abcdefghijklmnopqrstuvwxyz(,

2、設定 xml 檔案的程式碼提示功能

打 開 Eclipse 依次選擇 Window > Preferences > Xml > Editor > Content Assist > Auto activation > Prompt when these characters are inserted

 ,設定框中預設是 <=: ,

現在將它改為:

      <=:.abcdefghijklmnopqrstuvwxyz(,

3.設定下面用快捷鍵提示功能

window--->preferences----->General------->Keys,找到Content Assist 然後下面兩個值:

Binding : 你自定義的快捷鍵(一般都為alt+/吧)