標籤:android style blog http color ar 使用 sp java
我們在開發android的時候可能需要設定eclipse的代碼自動提示,背景顏色,字型大小,各種快速鍵等;在這簡單總結一下,希望能幫到大家:
1.設定java字碼頁:
(1)代碼自動提示:Windows——Preferences——Java——Editor——Content Assist
修改為這個字元就可以了.abcdefghijklmnopqrstuvwxyz
(2)設定行號 Windows——Preferences----Editors---Text Editors
(3) 設定背景顏色 Windows——Preferences----Editors---Text Editors
(4).設定字型大小Windows——Preferences----Color and Fonts
2 xml頁設定:
(1)代碼自動提示 Windows——Preferences----XML----XML Files -- Editor---Content Assist
改為這句代碼 .abcdefghijklmnopqrstuvwxyzABCDEFGHIGKLMNOPQRSTUVWXYZ(,
(2)xml頁面字型大小window--preferences--General--appearance--colors and
fonts--Basic-- "Text font "
下面是幾個最常用的快速鍵:
Ctrl+Shift+F 代碼自動格式Ctrl+\ 取消注釋Ctrl+/ 注釋Ctrl+Shift+M 添加匯入Shift +Alt+j 代碼多行注釋調試 運行F7 單步返回F6 單步跳過F5 單步跳入 Ctrl+F5 單步跳入選擇F11 調試上次啟動F8 繼續Shift+F5 使用過濾器逐步執行Ctrl+Shift+B 添加/去除斷點Ctrl+D 顯示Ctrl+F11 運行上次啟動 Ctrl+R 運行至行Ctrl+U 執行
eclipse常用設定