Skip to content

Instantly share code, notes, and snippets.

@wellwind
Last active January 21, 2024 03:26
Show Gist options
  • Save wellwind/a998c37fa68c00f55cb086b27eb3186d to your computer and use it in GitHub Desktop.
Save wellwind/a998c37fa68c00f55cb086b27eb3186d to your computer and use it in GitHub Desktop.
Angular + VSCode 常用熱鍵
  • 下載 PDF 檔

  • 全部儲存:

    • [Win] ctrl + k, s
    • [Mac] cmd + option + s
  • 關閉檔案

    • [Win] ctrl + w
    • [Mac] cmd + w
  • 開啟上次關閉的檔案

    • [Win] ctrl + shift + t
    • [Mac] cmd + shift + t
  • 跳到指定行數

    • ctrl + g
  • 切換元件關聯檔案

    • [Win] alt + u / i / o / p
    • [Mac] option + shift + o / i / o / p
    • u: .ts
    • i: .css / scss
    • o: .html
    • p: .spec.ts
  • 快速開啟檔案

    • [Win] ctrl + p
    • [Mac] cmd + p
  • 開啟/關閉左邊的 siderbar

    • [Win] ctrl + b
    • [Mac] cmd + b
  • 開啟/關閉檔案總管

    • [Win] ctrl + shift + e
    • [Mac] cmd + shift + e
  • 開啟/關閉搜尋視窗

    • [Win] ctrl + shift + f
    • [Mac] cmd + shift + f
  • 開啟/關閉原始檔控制(git)

    • [Win/Mac] ctrl + shift + g
  • 自動排版

    • [Win/Mac] alt + shift + f (記得設定 prettier.singleQuote)
  • 註解

    • [Win] ctrl + k + c
    • [Mac] cmd + k + c
  • 取消註解

    • [Win] ctrl + k + u
    • [Mac] cmd + k + u
  • 單行註解 / 取消註解

    • [Win] ctrl + /
    • [Mac] cmd + /
  • 選擇重複文字

    • [Win] ctrl + d
    • [MAc] cmd + d
  • 將目前的檔案用一個新視窗開啟

    • [Win] ctrl + k, o
    • [Mac] cmd + k, o
  • 回到游標上一次的位置

    • alt + 方向鍵左鍵
  • 選取整行

    • [Win] ctrl + l
    • [Mac] cmd + l
  • 打開 terminal

    • ctrl + shift + `
  • 打開/關閉下方提視窗

    • [Win] ctrl + j
    • [Max] cmd + j
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment