PHPStorm IDE 快捷鍵(MAC)


⌘——Command

⌃ ——Control

⌥——Option/Alt

⇧——Shift

⇪——Caps Lock

fn——功能鍵就是fn

PHPStorm可以自己設置快捷鍵

按住command + , 打開Preferences
點擊Keymap,右邊出現下拉框
點擊下拉框選擇你想要的快捷鍵設置

編輯類

command + c 復制
command + v 粘貼
command + shift + v 從剪貼板里選擇粘貼
command + x 剪切
command + delete 刪除當前行
command + / 行注釋/取消行注釋
command + option + / 塊注釋/取消塊注釋
option + shift + ⬆️⬇️ 將當前行上移/下移一行
tab 向后縮進
shift + tab 向前縮進
option + ⬆️⬇️ 向上/下選取代碼塊
command + d 復制當前行
command + z 撤銷
command + shift + z 取消撤銷
command + option + t 用if、for等包住代碼塊
command + option + l 格式化代碼
command + shift + j 自動將下一行合並到當前行末尾
shift + 回車 快速換行
command + shift + u 大小寫轉換
command + shift+ [] 文件選項卡快速切換
control + tab 文件選項卡切換
command + w 關閉當前文件選項卡
alt + 單擊 光標在多處定位
alt + / 代碼補全

搜索類

command + f 當前文件查找
command + r 當前文件替換
command + e 顯示最近打開的文件記錄列表
command + o 根據輸入的 類名 查找類文件
command + l 在當前文件跳轉到指定行處
command + p 顯示方法參數
command + b/單擊進入光標所在的方法/變量的接口或定義處
command + +/- 展開/折疊代碼
command + 1 打開/關閉項目目錄
command + ⬅️➡️ 光標移到當前行首/末
option + ⬅️➡️ 光標移到當前單詞首/末
option + f7 查找光標所在的方法 / 變量 / 類被調用的地方
control + enter 代碼自動生成, 如get/set等方法
command + n 代碼自動生成, 如get/set等方法
command + option + v 快速添加變量
command + option + ⬅️➡️ 退回到上/下一個操作的地方

 


免責聲明!

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



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