IntelliJ IDEA for Mac在MacOS模式下的编辑快捷键(Editing Shortcut)
生活随笔
收集整理的這篇文章主要介紹了
IntelliJ IDEA for Mac在MacOS模式下的编辑快捷键(Editing Shortcut)
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
| Control + Space | ?Space | Basic code completion | 基本的代碼補全(補全任何類、方法、變量),代碼智能提示,因為和切換輸入法快捷鍵沖突,所以基本改成Alt+/ |
| Shift + Command + Enter | ??? | Complete statement | 自動結(jié)束代碼,行末自動添加分號 |
| Command + P | ?P | Parameter info (within method call arguments) | 顯示方法的參數(shù)信息 |
| Control + J /F1 /Control+click | ?J / F1/ ?+click | Quick documentation lookup | 顯示當(dāng)前位置的變量、方法的 Documentation 內(nèi)容, 快速查看文檔 |
| Shift + F1 | ?F1 | External Doc | 查看外部文檔(在某些代碼上會觸發(fā)打開瀏覽器顯示相關(guān)文檔) |
| Command + 鼠標(biāo)放在代碼上 | ? + mouse | Brief Info | 顯示代碼簡要信息 |
| Command + F1 | ?F1 | Error Description | 在錯誤或警告處顯示具體描述信息 |
| Command + N, Control + Enter | ?N, ??, ?N | Generate code… | 生成代碼(getter、setter、構(gòu)造函數(shù)、hashCode/equals,toString) |
| Control + O | ?O | Override methods | 覆蓋方法(重寫父類方法) |
| Control + I | ?I | Implement methods | 實現(xiàn)方法(實現(xiàn)接口中的方法) |
| Option + Command + T | ??T | Surround?with… | 包圍代碼(使用if…else, try…catch, for, synchronized等包圍選中的代碼) |
| Option + 方向鍵上 | ?↑ | Extend selection | 連續(xù)選中代碼塊 |
| Option + 方向鍵下 | ?↓ | Shrink selection | 減少當(dāng)前選中的代碼塊 |
| Control + Shift + Q | ??Q | Context info | 顯示上下文信息 |
| Command + Option + L | ??L | Reformat code | 格式化代碼 |
| Control + Option + O | ??O | Optimize imports | 優(yōu)化import |
| Control + Option + I | ??I | Auto-indent line(s) | 自動縮進線 |
| Tab / Shift + Tab | ? / ?? | Indent/unindent selected lines | 縮進代碼 / 反縮進代碼 |
| Command + X | ?X | Cut current line to clipboard | 剪切當(dāng)前行或選定的塊到剪貼板 |
| Command + C | ?C | Copy current line to clipboard | 復(fù)制當(dāng)前行或選定的塊到剪貼板 |
| Command + V | ?V | Paste from clipboard | 從剪貼板粘貼 |
| Command + Shift + V | ??V | Paste from recent buffers… | 從最近的緩沖區(qū)粘貼 |
| Command+D | ?D | Duplicate current line | 復(fù)制光標(biāo)所在行的內(nèi)容,插入光標(biāo)所在行下面 |
| Command + Delete | ?? | Delete line at caret | 刪除當(dāng)前行或選定的塊的行 |
| Control + Shift + J | ??J | Smart line join | 智能的將代碼拼接成一行 |
| Command + Enter | ?? | Smart line split | 智能行拆分 |
| Option + Enter | ?? | Show intention actions and quick-fixes | 顯示意向動作/快速修復(fù)代碼 |
| Shift + Enter | ?? | 光標(biāo)所在行下方插入空白行 | |
| Option + Command + Enter | ??? | 光標(biāo)所在行上方插入空白行 | |
| Command + Shift + U | ??U | Toggle case for word at caret or selected block | 大小寫切換 |
| Shift+Command+] | ??] | select next tab | 選擇下個tab |
| Shift+Command+[ | ??[ | select previous tab | 選擇上一個tab |
| Command + Shift + ] / Command + Shift + [ | ??] / ??[ | Select till code block end/start,select next tab/previous tab | 選擇直到代碼塊結(jié)束/開始 |
| Option + Fn + Delete | (?鍵為Fn+Delete) ?? | Delete to word end | 刪除到單詞的末尾 |
| Option + Delete | ?? | Delete to word start | 刪除到單詞的開頭 |
| Command + 加號 / Command + 減號 | ?+ / ?- | Expand/collapse code block | 展開 / 折疊代碼塊 |
| Command + Shift + 加號 | ??+ | Expand all | 展開所有代碼塊 |
| Command + Shift + 減號 | ??- | Collapse all | 折疊所有代碼塊 |
| Command + . | 首先光標(biāo)要放在括號內(nèi),然后按下此組合鍵,可以在展開和折疊之間切換 | ||
| Command + W | ?W | Close active editor tab | 關(guān)閉活動的編輯器選項卡 |
| Shift+Option+上下箭頭 | ?? +上下箭頭 | Move current line of code | 移動當(dāng)前代碼行 |
| Shift + F6 | ? F6 | 選中要修改的變量名稱,按下此組合鍵,然后輸入新的變量名,所有使用此變量的地方都會同步修改過來 | |
| Command + Shift +8 | ??8 | Column Selection Mode | 豎編輯模式,按下該組合鍵后,按住鼠標(biāo)拖動選擇代碼,會在選中的每行出現(xiàn)光標(biāo),就可以一次性在不同的行插入相同的字符 |
| Option + Shift + I | ??I | Inspect current file with current profile | 使用當(dāng)前的配置文件檢查當(dāng)前的文件,檢查代碼有沒有問題 |
| Option + Shift + I | ??I | inspect code with editor settings | 使用編輯器設(shè)置檢查代碼 |
| Command + S | ?S | Save all | 保存所有 |
總結(jié)
以上是生活随笔為你收集整理的IntelliJ IDEA for Mac在MacOS模式下的编辑快捷键(Editing Shortcut)的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 好看的女追男的小说古言(五本女追男古代甜
- 下一篇: tplink怎么连接电脑(电脑用tpli