webstorm常用快捷鍵 mac篇

2022-07-28 02:39:09 字數 2153 閱讀 9438

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 跳轉到某個符號

f12 開啟之前開啟的工具視窗(todo、終端等)

command+l 跳轉行

command+e 彈出最近檔案

command+alt+←,command+alt+→ 向前向後導航到**塊交接處(一般是空行處)

command+b 跳轉到變數宣告處

command+y 小浮窗顯示變數宣告時的行

command+[,command+] 游標現在的位置和之前的位置切換

command+f12 檔案結構彈出式選單

alt+h 類的層次結構

f2,shift+f2 切換到上\下乙個突出錯誤的位置

command+↑ 跳轉到導航欄

f3 新增書籤

alt+f3 新增帶助記的書籤

alt+1,alt+2… 切換到相應助記的書籤位置

command+f3 開啟書籤列表

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版本公升級列表

WebStorm常用快捷鍵

查詢 代替 快捷鍵說明 ctrl shift n 通過檔名快速查詢工程內的檔案 必記 ctrl shift alt n 通過乙個字元快速查詢位置 必記 ctrl f 在檔案內快速查詢 f3 查詢下乙個 shift f3 查詢上乙個 ctrl r 檔案內 替換 ctrl shift r 指定目錄內 批...

Webstorm常用快捷鍵

快捷鍵 說明 ctrl shift n通過檔名快速查詢工程內的檔案 必記 ctrl shift alt n通過乙個字元快速查詢位置 必記 ctrl f在檔案內快速查詢 f3查詢下乙個 shift f3查詢上乙個 ctrl r檔案內 替換ctrl shift r指定目錄內 批量替換 ctrl shif...

Webstorm常用快捷鍵

介面操作快捷鍵 說明 ctrl shift n通過檔名快速查詢工程內的檔案 必記 ctrl shift alt n通過乙個字元快速查詢位置 必記 ctrl f在檔案內快速查詢 f3查詢下乙個 shift f3查詢上乙個 ctrl r檔案內 替換 ctrl shift r指定目錄內 批量替換 ctrl...