ctrl + D > 選擇當前文字alt + 滑鼠點擊 > 一次操作多個地方shift + alt + 滑鼠拖曳 > 一次操作多個地方shft + alt + ↓ > 複製一行ctrl + shft + K > 刪除一行ctrl + X > 剪下一行li*3 > 一次建立3個lictrl + shft + R > Refactor ,將程式碼打包成 functioncolorize
能夠將 RGB、HSL 代表的顏色,其顏色直接顯示在 code 裡面。
material icon theme
讓 file name 前面,顯示檔案類型對應的 icon。
eslint
透過它能夠直接在 vscode 中檢查程式碼是否有符合 eslint 規則。
使用 npm 下載 eslint:
npm install eslint --save-devpackage.json 的 script 中加入以下指令: (備註省略)"scripts": {
// 初始化 eslint
"eslintInit": "eslint --init",
// 使用 eslint 檢查程式碼
// --ext 的意思是指定哪些檔案的意思
"lint-check": "eslint --ext .js,.jsx src/component/",
// 使用自動修補程式碼
"lint-fix": "eslint --fix --ext .js,.jsx src/component/"
},prettier
提供能夠讓程式碼更好看的功能。
存檔後自動使用 prettier:
ctrl + p,然後輸入: >format document with,將預設改為 prettierprettier eslint
參考: VSCode Prettier 整合 ESLint 自動排版
如果要結合 eslint 以及 prettier,先從 vscode 下載 prettier eslint,並將 format document with 設定預設改成 _prettier eslint_,再透過 npm 下載 eslint, prettier 以及 prettier eslint 。
npm install --save-dev eslint prettier prettier-eslint
Discord Presence
讓 discord 顯示正在 coding 的 rich presence
Live Server
Launch a development local Server with live reload feature for static & dynamic pages
Git Graph
讓我們能直接在 vscode 裡面就看到分支圖
— Jan 10, 2022
Made with ❤ and at Taiwan.