Action | Mac OSX | Win/Linux |
---|---|---|
註釋程式碼(//) | Cmd + / | Ctrl + / |
註釋程式碼(/**/) | Cmd + Option + / | Ctrl + Alt + / |
格式化程式碼 | Cmd + Option + L | Ctrl + Alt + L |
清除無效包引用 | Option + Control + O | Alt + Ctrl + O |
查詢 | Cmd + F | Ctrl + F |
查詢+替換 | Cmd + R | Ctrl + R |
上下移動程式碼 | Option + Shift + Up/Down | Alt + Shift + Up/Down |
刪除行 | Cmd + Delete | Ctrl + Y |
擴大縮小選中範圍 | Option + Up/Down | Ctrl + W/Ctrl + Shift + W |
快捷生成結構體 | Cmd + Option + T | Ctrl + Alt + T |
快捷覆寫方法 | Ctrl + O | Ctrl + O |
快捷定位到行首/尾 | Cmd + Left/Right | Ctrl + Left/Right |
摺疊展開程式碼塊 | Cmd + Plus,Minus | Ctrl + Plus/Minus |
摺疊展開全部程式碼塊 | Cmd + Shift + Plus,Minus | Ctrl + Shift + Plus,Minus |
檔案方法結構 | Cmd + F12 | Ctrl + F12 |
查詢呼叫的位置 | Ctrl + Option + H | Ctrl + Alt + H |
大小寫轉換 | Cmd + Shift + U | Ctrl + Shift + U |
程式碼高亮
OSX:Shift + Cmd + F7
Win/Linux:Alt + J
程式碼高亮向上查詢
OSX:Shift + Cmd + G
Win/Linux:Shift + F3
程式碼高亮向下查詢
OSX:Cmd + G
Win/Linux:F3
檔案方法結構
OSX:Cmd + F12
Win/Linux:Ctrl + F12
查詢呼叫的位置
OSX/Win/Linux:Ctrl + Alt + H
快速查詢定義
OSX:Cmd + Space
Win/Linux:Ctrl + Shift + I
摺疊展開程式碼塊
OSX:Cmd + Plus,Minus
Win/Linux:Ctrl + Shift + Plus/Minus
摺疊展開全部程式碼塊
OSX:Cmd + Shift + Plus,Minus
Win/Linux:
新增書籤
OSX:F3
Win/Linux:F11
新增書籤標識
OSX:Alt + F3
Win/Linux:Ctrl + F11
顯示書籤
OSX:Cmd + F3
Win/Linux:Shift + F11
查詢動作
OSX:Cmd + Shift + A
Win/Linux:Ctrl + Shift + A
上下移動程式碼
OXS/Win/Linux:Alt + Shift + Up/Down
刪除行
OSX:Cmd + Delete
Win/Linux:Ctrl + Y
快捷向下複製行
OSX:Cmd + D
Win/Linux:Ctrl + D
擴大縮小選中範圍
OSX:Alt + Up/Down
Win/Linux:Ctrl + W/Ctrl + Shift + W
快捷生成結構體
OSX:Cmd + Alt + T
Win/Linux:Ctrl + Alt + T
快捷覆寫方法
OSX:Ctrl + O
Win/Linux:
快捷定位到行首/尾
OSX:Cmd + Left/Right
按照模板生成程式碼
OSX:Cmd + J
Win/Linux: Ctrl + J
或者 .
註釋程式碼(//)
OSX:Cmd + /
Win/Linux:
註釋程式碼(/**/)
OSX:Cmd + Alt + /
Win/Linux:
格式化程式碼
OSX:Cmd + Alt + L
Win/Linux:
快捷選擇
OSX:Alt + F1
Win/Linux:Alt + F1
快捷移動
OSX:Ctrl + Up/Down
Win/Linux:
快捷退至上一行末尾
OSX:Ctrl + Shift + J
Win/Linux:Ctrl + Shift + J
快捷最近開啟
OSX:Cmd + E
Win/Linux:Ctrl + E
清楚無效引用
Alt + Control + O
Win/Linux:Alt + Control + O
程式碼補全
Cmd + Shift + Enter
Win/Linux:Ctrl + Shift + Enter
提示錯誤解決方案
Alt + Enter
Win/Linux:Alt + Enter
提示引數型別
Cmd + P
Win/Linux:Ctrl + P
查詢+替換
Cmd + R
Win/Linux:Ctrl + R
查詢
Cmd + F
Win/Linux:Ctrl + F
- CTRL + ALT + L (Win)
- OPTION + CMD + L (Mac)
- CTRL + Q (Win)
- F1 (Mac)
- CTRL + P
- ALT + Insert (Win)
- CMD + N (Mac)
- F4 (Win)
- CMD + down-arrow (Mac)
- CTRL + Y (Win)
- CMD + Backspace (Mac)
- CTRL + ALT + SHIFT + N (Win)
- OPTION + CMD + O (Mac)
- CTRL + F9 (Win)
- CMD + F9 (Mac)
Build and run
- SHIFT + F10 (Win)
- CTRL + R (Mac)
Toggle project visibility
- ALT + 1 (Win)
- CMD + 1 (Mac)
Navigate open tabs
- ALT + left-arrow; ALT + right-arrow (Win)
- CTRL + left-arrow; CTRL + right-arrow (Mac)
Open Class File Symbol
Open class
- CTRL+N(win)
- CMD+O(mac)
Open file
- CTRL+SHIFT+n(win)
- CMD+SHIFT+o (mac)
Open Symbol
- CTRL+SHIFT+ALT+N
- CMD+ALT+O
Recent Files Opened
- CTRL+E(win)
- CMD+E(mac)
Recently edited files
- CTRL+SHIFT+E(win)
- CMD+SHIFT+E(mac)
Previous Next/Previous Error
- SHIFT-F2/F2(win)
Last edited Location
- CTRL+SHIFT+backspace(win)
- CMD+SHIFT+backspace(mac)
- CTRL+B(win)
- CMD+B(mac)
- CTRL+U(win)
- CMD+Y(mac)