Eclipse 常用快捷鍵 個性設置(Mac)


推薦編程使用Mac 要是非要一個原因 那就是Apple工程師用Mac Google工程師也用Mac 

1. 常用快捷鍵

Mac自帶

Command +   跳到當前文本行頭

Command +   跳到當前文本行尾

Command + ↑  跳到整個文本頭

Command + ↓  跳到整個文本尾

Shift + Command + ←或者→  選中當前行

Command + Z  后悔葯

Command + X  剪切

Command + C  粘貼

Command + V  復制

Eclispe功能鍵

Control + Q  定位到最后編輯的地方

Command + /  單行注釋

Control + Command + /  多行注釋

Option + /  代碼助手完成一些代碼的插入(智能提示)

Command + O  顯示大綱 快速搜方法

Command + D  刪除當前行

Command + T  快速顯示當前類的繼承結構

Command + W  關閉當前Editer

Command + K  參照當前選中的詞快速定位到下一個

Command + I  在Package Explorer選中項目 打開Properties

Command + 1  快速修復

(Command + 2) + L  new對象時快速返回變量類型及變量名

Option + ↓  向下移動當前行

Option + ↑  向上移動當前行

Command + Option + ↓  復制當前行到下一行 

Command + Option + ↑  復制當前行到上一行

Shift + Command + O  導包

Shift + Command + W  關閉所有打開的Editer

Shift + Command + X  把當前選中的文本全部變為大寫

Shift + Command + Y  把當前選中的文本全部變為小寫

Shift + Command + F  格式化當前代碼

Shift + Command + P  定位到對於的匹配符

 

2. 個性設置

字體大小

Mac狀態欄 Eclipse-->偏好設置-->General-->Appearance-->Colors and Fonts

右邊選擇Basic-->Text Font 選好后 Apply (代碼編輯 XML Console都會更改<Console可能需要重啟Eclipse才會生效>)

java編輯區

Mac狀態欄 Eclipse-->偏好設置-->General-->Editor-->Text Editors

右邊選擇Appearance color options 

選Current line highlight 當前選中行的背景顏色 65 65 65

選Selection background color 當前選中詞的背景顏色 45 88 147

選Background color 選擇背景顏色 57 57 57

Mac狀態欄 Eclipse-->偏好設置-->General-->Editor-->Text Editors-->Annotations

右邊Occurrences 這個是當前選中詞 關聯到相同詞 那些相同詞的背景顏色 推薦 45 88 147

右邊Write Occurrences 這個是當前選中詞 第一次初始化詞的背景顏色 推薦 255 0 0 

在Eclipse最上面有個毛筆的圖標 取消勾選即不關聯當前選中詞 默認勾選 推薦勾選

Mac狀態欄 Eclipse-->偏好設置-->Java-->Editor-->Syntax Coloring

右邊選擇Java 然后可以自由選擇顏色了

Annotations(注解) 199 190 66

Fields(字段) 255 255 0

Keyword 'return'(return關鍵字) 255 0 0

Keyword excluding 'return'(不包含return的其他關鍵字) 255 0 0 

Method declarations(方法聲明) 239 207 133 勾選 Underline(下划線)

Method(方法) 239 207 133

Number(數字) 199 190 66

Static Method invocations(靜態方法調用) 239 207 133 勾選 ltalic(傾斜字體)

Strings(字符串) 199 190 66

xml編輯區

Mac狀態欄 Eclipse-->偏好設置-->XML-->XML Files-->Editor-->Syntax Coloring

右邊Attribute Names 鍵 159 141 183

右邊Attribute Values 值 239 207 133

右邊Comment Content 注釋內容 146 146 146

右邊Comment Delimiters 注釋括號 146 146 146

右邊Tag Delimiters 標簽括號 239 207 133

右邊Tag Names 標簽名字 239 207 133

編輯設置

Mac狀態欄 Eclipse-->偏好設置-->Java-->Editor-->Content Assist

右邊Auto activation tiggers for Java 后面輸入框的內容表示輸入什么樣的字符彈出提示 設置成".abcdefghijklmnopqrstuvwxyz" 就是說輸入"."或者26個字母任何一個都會彈出提示

右邊Auto activation delay(ms) 提示時間 可以改成20 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM