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