mac-phpstorm 快捷键
PHPStorm IDE 快捷鍵(MAC)
?——Command
? ——Control
?——Option/Alt
?——Shift
?——Caps Lock
fn——功能鍵就是fn
編輯 Command+alt+T 用 (if..else, try..catch, for, etc.)包住
Command+/ 注釋/取消注釋的行注釋
Command+alt+/ 注釋/取消注釋與塊注釋
alt+↑ 向上選取代碼塊
alt+↓ 向下選取代碼塊
Command+alt+L 格式化代碼
tab,shift+tab 調整縮進
Control+alt+I 快速調整縮進
Command+C 復制
Command+X 剪切
Command+V 粘貼
Command+shift+V 從剪貼板里選擇粘貼
Command+D 復制代碼副本
Command+delete 刪除當前行
Control+Shift+J 清除縮進變成單行
shift+回車 快速換行
Command+回車 換行光標還在原先位置
Command+shift+U 大小寫轉換
Command+shift+[,Command+shift+] 文件選項卡快速切換 Command+加號,Command+減號 收縮代碼塊 Command+shift+加號,Command+shift+減號 收縮整個文檔的代碼塊 Command+W 關閉當前文件選項卡 alt+單擊 光標在多處定位 Control+shift+J 把下面行的縮進收上來 shift + F6 高級修改,可快速修改光標所在的標簽、變量、函數等 alt+/ 代碼補全\
調試 Control+alt+R 運行項目
Command+Control+R 運行Debug
Command+F8 添加斷點
Command+shift+F8 打開斷點列表\
導航 Command+O 跳轉到某個類
Command+shift+O 跳轉到某個文件
Command+alt+O 跳轉到某個符號
Control+←,Control+→ 轉到上/下一個編輯器選項卡 F12 打開之前打開的工具窗口(TODO、終端等)
Command+L 跳轉行
Command+E 彈出最近文件
Command+alt+←,Command+alt+→ 向前向后導航到代碼塊交接處(一般是空行處)
Command+shift+delete 導航到上一個編輯位置的位置
Command+B 跳轉到變量聲明處
Control+J 獲取變量相關信息(類型、注釋等,注釋是拿上一行的注釋)
Command+Y 小浮窗顯示變量聲明時的行
Command+[,Command+] 光標現在的位置和之前的位置切換
Command+F12 文件結構彈出式菜單
alt+H 類的層次結構
F2,shift+F2 切換到上\下一個突出錯誤的位置
Command+↑ 跳轉到導航欄
F3 添加書簽
alt+F3 添加帶助記的書簽
alt+1,alt+2… 切換到相應助記的書簽位置
Command+F3 打開書簽列表\
VCS/本地歷史記錄 control+V 打開VST小浮窗
Command+K 提交項目
Command+T 更新項目
alt+shift+C 打開最近修改列表\
搜索和替換 Command+F 搜索
Command+R 替換
Command+G 查找下一個
Command+shift+G 查找下一個
Command+shift+F 按路徑搜索
Command+shift+R 按路徑替換\
選中文字的搜索 Command+F7 向聲明的地方搜索并選中
Command+shift+F7 打開搜索框進行搜索
Command+alt+F7 打開小浮窗顯示搜索列表\
對項目文件的操作(重構)
F5 復制文件到某個目錄
F6 移動文件到某個目錄
Command+delete 安全刪除
shift+F6 重命名\
全局的 雙擊shift 彈出小浮窗搜索所有
Command+~切換項目 Command+shift+~ 反向切換項目 (在打開的不同項目中切換)
Command+shift+A 整個工程的查找操作
Command+1,Command+2… 打開各種工具窗口
alt+shift+F 把文件添加到收藏夾
alt+shift+I 打開項目描述
alt+~ 快速切換當前計劃
Command+, 設置編輯器
Control+Tab 選項卡和工具窗口之間進行切換
alert+回車 顯示npm版本升級列表
轉載于:https://juejin.im/post/5bc80771f265da0ac66981c2
總結
以上是生活随笔為你收集整理的mac-phpstorm 快捷键的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: c++之趣味new代码大家看
- 下一篇: windows python读取grib