我的 Visual Studio Code 設定

settings.json

{
    "editor.tabSize": 2,
    "editor.wordWrap": "on",
    "editor.formatOnSave": true,
    "editor.formatOnPaste": true,
    "workbench.settings.openDefaultSettings": true,
    "javascript.validate.enable": false, //for Extension "StandardJS - JavaScript Standard Style"
    "javascript.format.insertSpaceBeforeFunctionParenthesis": true, // 宣告函式時,函式名稱和 () 之間有一格空格
    "editor.detectIndentation": false, // 儲存檔案時,讓 autoformat 縮排是兩格
    "diffEditor.ignoreTrimWhitespace": false, // 儲存檔案時,讓 autoformat 縮排是兩格
    "emmet.includeLanguages": {
        "javascript": "html",
    },
    "vetur.format.defaultFormatter.html": "js-beautify-html", // format .vue html
    "vetur.format.defaultFormatter.js": "vscode-typescript", // Let the js in vue formatted according to the ts format of the editor
    "[python]": {
        "editor.detectIndentation" : false,
        "editor.insertSpaces": true,
        "editor.tabSize": 4
    }
}

Extension

  1. Emmet
  2. Bracket Pair Colorizer 2 0.2.0
  3. Live Server  5.6.1
  4. Markdown Preview Enhanced  0.5.13
  5. StandardJS - JavaScript Standard Style  1.4.0
  6. Vetur
  7. EditorConfig for VS Code
  8. EditorConfigGenerator
  9. Python
  10. Code Runner:執行被反白的程式碼
  11. indent-rainbow:不同層次的縮排標示不同顏色

參考資料


最後更新日期:2021 年 07 月 06 日

Comments

Popular posts from this blog

Alpha Camp 全端開發課程學習心得

在 javascript 用 regular expression 為金額加上千位數分隔符號

shop_platform - sqlalchemy.exc.TimeoutError