phpstorm常用快捷鍵

一、瀏覽和查找

1. command + 1 展開左側 (alt + 1)

2. shift + shift 查找文件 (ctrl + shift + n)

3. alt + command + o 全局查找函數 (ctrl + alt + shift + n)

4. fn + command + f12 查找本文件所有函數

5. command + 7 顯示類中的方法 (alt + 7)

6. command + 鼠標點擊 函數追蹤 command + alt + ← 返回 (ctrl + 鼠標點擊 函數追蹤 ctrl + alt + ← 返回)

7. command + b 跳到變量的聲明處 (ctrl + b)

8. scroll top scroll bottom 設置快捷鍵 快速回到文件頭部 和 尾部 fn + 向上箭頭(向下箭頭)翻頁

二、編輯

1. /** + enter 頭部參數說明

2. command + / 單行註釋 (ctrl + /)

3. command + shift + / 多行註釋 (ctrl + shift + /)

4. command + delete 刪除當前行 (ctrl + delete)

5. command + d 複製當前行(ctrl + d)

6. shift + enter 快速換行

7. command +l 跳到指定行號 (ctrl + g)

8. fn + f2 查找飄紅的語法錯誤

三、設置

1. command + , 顯示設置

2. command + option +l 代碼格式化 (ctrl + alt + l)

3. Editor → General → Appearance→show line numbers

4. 行號、字體、代碼風格


前面是Mac鍵,後面括號內容是window鍵。

發佈了25 篇原創文章 · 獲贊 13 · 訪問量 4萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章