IntelliJ IDEA for Mac在MacOS模式下的导航快捷键(Navigation Shortcut)
生活随笔
收集整理的這篇文章主要介紹了
IntelliJ IDEA for Mac在MacOS模式下的导航快捷键(Navigation Shortcut)
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
| Shift + Command + [ | ??[ | Go to previous editor tab/Select Previous Tab | 向左切換打開的編輯 tab 頁 |
| Shift + Command + ] | ??[ | Go to next editor tab/Select Next Tab | 向右切換打開的編輯 tab 頁 |
| F12 | Go back to previous tool window | 返回到前一個(gè)工具窗口 | |
| Esc | ? | Go to editor (from tool window) | 從工具窗口進(jìn)入代碼文件窗口 |
| Shift + Esc | ?? | Hide active or last active window | 隱藏當(dāng)前或最后一個(gè)活動(dòng)的窗口,且光標(biāo)進(jìn)入代碼文件窗口 |
| Command + L | ?L | Go to line | 在當(dāng)前文件跳轉(zhuǎn)到某一行的指定處 |
| Command + Shift + F4 | ??F4 | 未知 | 關(guān)閉活動(dòng)run/messages/find/… tab |
| Command + E | ?E | Recent files popup | 顯示最近打開的文件記錄列表 |
| Shift + Option + E | ??E | Recent location popup | 最近位置的彈窗 |
| Command + Option + ← | ??← | Navigate back | 退回到上一個(gè)操作的地方,即返回至上次瀏覽的位置 |
| Command + Option + → | ??→ | Navigate forward | 前進(jìn)到下一個(gè)操作的地方,即返回至下次瀏覽的位置 |
| Command + ] | ?] | 回退到前一次操作的地方 | |
| Command + [ | ?[ | 前進(jìn)到后一次操作的地方 | |
| Command + Shift + Delete | ??? | Navigate to last edit location | 跳轉(zhuǎn)到最后一個(gè)編輯的地方 |
| Command+Shift+I | ??I | 查看定義的類,快速查看 | |
| Option + F1 | ?F1 | Select current file or symbol in any view | 顯示當(dāng)前文件選擇目標(biāo)彈出層,彈出層中有很多目標(biāo)可以進(jìn)行選擇(如在代碼編輯窗口可以選擇顯示該文件的Finder) |
| Command + B / Command + 鼠標(biāo)點(diǎn)擊 | ?B / ? + click | Go to declaration | 進(jìn)入光標(biāo)所在的接口/類/方法/變量的聲明處 |
| Command + Option + B | ??B | Go to implementation(s) | 在方法名上使用此組合鍵,如果當(dāng)前方法所在類有多個(gè)子類,會(huì)打開子類列表,選擇查看子類的覆蓋重新方法;如果是在類名上使用此組合鍵,且當(dāng)前類有多個(gè)子類,會(huì)打開子類列表,選擇查看子類定義 |
| Option + Space, Command + Y | ? Space, ?Y | Open quick definition lookup | 快速打開光標(biāo)所在方法、類的定義 ,會(huì)打開一個(gè)小窗口 |
| Control + Shift + B | ??B | Go to type declaration | 跳轉(zhuǎn)到類型聲明處 |
| Command + U | ?U | Go to super-method / super-class | 前往當(dāng)前光標(biāo)所在方法的父類的方法 / 接口定義 |
| Control + 方向鍵下 / Control + 方向鍵上 | ?↓ / ?↑ | Go to previous/next method | 當(dāng)前光標(biāo)跳轉(zhuǎn)到當(dāng)前文件的前一個(gè)/后一個(gè)方法名位置 |
| Option+Command + ] | ??] | Move caret to code block start | 移動(dòng)光標(biāo)(插入符號(hào))到當(dāng)前所在代碼塊的開始位置 |
| Option+Command + [ | ? ?[ | Move caret to code block end | 移動(dòng)光標(biāo)(插入符號(hào))到當(dāng)前所在代碼塊的結(jié)束位置 |
| Command + F12 | ?F12 | File structure popup | 彈出當(dāng)前文件結(jié)構(gòu)層,可以在彈出的層上直接輸入進(jìn)行篩選(可用于搜索類中的方法和變量),這個(gè)其實(shí)有點(diǎn)類似于 Class Structure |
| Control + H | ?H | Type hierarchy | 顯示當(dāng)前類的層次結(jié)構(gòu),其實(shí)就是類的繼承關(guān)系結(jié)構(gòu) |
| Command + Shift + H | ??H | Method hierarchy | 顯示方法層次結(jié)構(gòu),其實(shí)是顯示方法所在類的繼承/實(shí)現(xiàn)層次結(jié)構(gòu) |
| Control + Option + H | ??H | Call hierarchy | 顯示調(diào)用層次結(jié)構(gòu) |
| F2 / Shift + F2 | F2 / ?F2 | Next/previous highlighted error | 跳轉(zhuǎn)到下一個(gè)/上一個(gè)突出錯(cuò)誤或警告的位置 |
| F4 / Command + 方向鍵下 | F4 / ?↓ | Edit source/View source /jump to source | 編輯/查看代碼源 |
| Option + Home | ? Home | Show navigation bar | 顯示到當(dāng)前文件的導(dǎo)航條 |
| F3 | Toggle bookmark | 選中文件/文件夾/代碼行,添加/取消書簽 | |
| Option + F3 | ?F3 | Toggle bookmark with mnemonic | 選中文件/文件夾/代碼行,使用助記符添加/取消書簽 |
| Control + 0...Control + 9 | ?0…?9 | Go to numbered bookmark | 定位到對(duì)應(yīng)數(shù)值的書簽位置 |
| Command + F3 | ?F3 | Show bookmarks | 顯示所有書簽 |
| Command+↑ | ? ↑ | 此時(shí)你的光標(biāo)在源代碼編輯界面中,按下此組合鍵,可以在同一個(gè)包下的所有源代碼文件中進(jìn)行切換 |
注:可以在 IntelliJ IDEA 的菜單欄的【Navigate】中查看所有關(guān)于“導(dǎo)航”的操作快捷鍵。
總結(jié)
以上是生活随笔為你收集整理的IntelliJ IDEA for Mac在MacOS模式下的导航快捷键(Navigation Shortcut)的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 按键设置工具(电脑设置自动按键工具)
- 下一篇: IntelliJ IDEA for Ma