phpstorm常用快捷鍵


mac電腦phpstorm快捷鍵

Cornerstone無法查看log解決辦法

Cornerstone無法查看log解決辦法

    command + o 按類名查找文件

    command + shift + o 按文件名查找文件
    command + a 全選
    command + c 復制
    command + v 粘貼
    command + z 撤消
    fn+command+f2 查看類結構

    command + e 列出最后打開的文件
    ctrl + shift + / 塊注釋
    shift + command + x
    shift + command + r 按文件名搜索對應文件所在路徑
    shift + command + t 按類名搜索對應文件所在路徑
    shift + command + c 復制當前文件所在路徑
    選中左側的文件名  shift + f6(mac需要同時按住鍵) 進行文件重命名

 

windows下phpstorm的快捷鍵

ctrl+shift+n查找文件

ctrl+shift+f 在一個目錄里查找一段代碼(ctrl+f的升級版)

ctr+shift+r 在一個目錄里查找一段代碼並替換(ctrl+r的升級版)

 

CTRL+ALT ←/→  返回上次編輯的位置
ALT+ ←/→  切換代碼視圖,標簽切換
ALT+ ↑/↓  在方法間快速移動定位

 

 

ctrl+j插入活動代碼提示
ctrl+alt+t當前位置插入環繞代碼
alt+insert生成代碼菜單
ctrl+q查看代碼注釋
ctrl+d復制當前行
ctrl+y刪除當前行
shift+F6重命名
ctrl+shift+u字母大小寫轉換
ctrl+f查找
ctrl+r替換
F4查看源碼

ctrl+shift+i查看變量或方法定義源
ctrl+g跳轉行
ctrl+alt+F12跳轉至當前文件在磁盤上的位置
alt+down查看下一個方法
alt+up查看上一個方法
ctrl+alt+l重新格式化代碼
ctrl+shift+downstatement向下移動
ctrl+shift+upstatement向上移動
alt+shift+downline向下移動
alt+shift+upline向上移動
ctrl+/行注釋
ctrl+shift+/塊注釋
ctrl+shift+n打開工程中的文件
ctrl+b跳到變量申明處
ctrl+[]匹配 {}[]
ctrl+shift+]/[選中塊代碼
ctrl+x剪切行
ctrl+shift+v復制多個文本
alt+left/right標簽切換
ctrl+p顯示默認參數
ctrl+F12在當前類文件里快速查找方法 

--------------------------------------------------------------

phpstorm快捷鍵:
// ctrl+shift+n 查找文件
// ctrl+j 插入活動代碼提示
// ctrl+alt+t 當前位置插入環繞代碼
// alt+insert 生成代碼菜單

// ctrl+q 查看代碼注釋
// ctrl+d 復制當前行
// ctrl+y 刪除當前行
// shift+F6 重命名
// ctrl+shift+u 字母大小寫轉換
// ctrl+f 查找
// ctrl+r 替換
// F4 查看源碼
// ctrl+shift+i 查看變量或方法定義源
// ctrl+g 跳轉行
// ctrl+alt+F12 跳轉至當前文件在磁盤上的位置
// alt+down 查看下一個方法
// alt+up 查看上一個方法
// ctrl+alt+l 重新格式化代碼
// ctrl+shift+down statement向下移動
// ctrl+shift+up statement向上移動
// alt+shift+down line向下移動
// alt+shift+up line向上移動
// ctrl+/ 行注釋
// ctrl+shift+/ 塊注釋

// ctrl+shift+n 打開工程中的文件
// ctrl+b 跳到變量申明處
// ctrl+[] 匹配 {}[]
// ctrl+shift+]/[ 選中塊代碼
....
// ctrl+x 剪切行
// ctrl+shift+v 復制多個文本
// alt+left/right 標簽切換
// ctrl+p 顯示默認參數
// ctrl+F12 在當前類文件里快速查找方法

 

Mac基本按鍵解釋:

⌘——Command

⌃ ——Control

⌥——Option/Alt

⇧——Shift

⇪——Caps Lockfn——功能鍵就是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版本升級列表

 

ps:本篇文章轉自他人,僅供自己學習


免責聲明!

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



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