Webstorm 經常使用快捷鍵

查找/設置快捷鍵

  • File -> Settings -> Keymap
  • Ctrl + Alt + S

符號說明

Mac 菜單和鍵盤一般對某些按鍵使用符號,其中包括如下修飾鍵:spa

  • Command(或 Cmd)⌘
  • Shift ⇧
  • Option(或 Alt)⌥
  • Control(或 Ctrl)⌃
  • Caps Lock ⇪
  • Fn
  • 在 Windows PC 專用鍵盤上,請用 Alt 鍵代替 Option 鍵,用 Windows 標誌鍵代替 Command 鍵。

經常使用快捷鍵

說明 Default Mac
多行編輯 Alt + 左鍵 Alt + 左鍵
摺疊/展開代碼塊,自動識別 ( Expand/Collapse code block ) Ctrl + 加號/減號 Command + 加號/減號
展開全部代碼塊 ( Expand all ) Ctrl + Shift + 加號 Command + Shift + 加號
摺疊全部代碼塊 ( Collapse all ) Ctrl + Shift + 減號 Command + Shift + 減號
選擇下一個匹配項 ( Add Selection for Next Occurrence ) Alt + J Control + G
選中全部匹配項 ( Select All Occurrences ) Ctrl + Alt + Shift + J Control + Command + G
按文件名快速查找文件 ( Go to file ) Ctrl + Shift + N Command + Shift + O
複製當前行 ( Duplicate current line ) Ctrl + D Command + D
刪除當前行 ( Delete line at caret ) Ctrl + Y Command + Delete
快速到某行 ( Go to line ) Ctrl + G Command + L
當前光標下插入行 ( Smart line split ) Ctrl + Enter Command + Enter
插入新行且光標定位到新行 ( Start new line ) Shift + Enter Shift + Enter
回到最近的一次編輯 ( Navigate to last edit location ) Ctrl + Shift + Backspace Command + Shift + Delete
回到上次或下次光標位置 ( Navigate back/ forward ) Ctrl + Alt + Left/Right Command + Option + Left/Right
在指定路徑中查找 ( Find in path ) Ctrl + Shift + F Command + Shift + F
在指定路徑中替換 ( Replace in path ) Ctrl + Shift + R Command + Shift + R
顯示最近打開的文件 ( Recent files popup ) Ctrl + E Command + E
跳到變量申明處 ( Go to declaration ) Ctrl + B , Ctrl + Click Command + B , Command + Click
相關文章
相關標籤/搜索