# VS Code

# 常用插件

  • Chinese (Simplified) Language Pack for Visual Studio Code
  • Code Runner
  • Live Server
  • Markdown All in One
  • Todo Tree
  • Git Graph
  • Git History
  • Chinese Lorem
  • Easy LESS
  • Easy SASS
  • Import Cost
  • i18n Ally
  • vscode-icons

# 代码片段

文件 -> 首选项 -> 用户代码片段

//

# Todo Tree

"todo-tree.general.tags": [
    "TODO:",
    "FIXME:",
    "[ ]",
    "[x]"
],
"todo-tree.highlights.defaultHighlight": {
    "foreground": "white",
    "background": "black",
    "icon": "alert",
    "type": "tag",
    "iconColour": "blue"
},
"todo-tree.highlights.customHighlight": {
    "TODO:": {
        "foreground": "black",
        "background": "white",
        "icon": "bookmark",
        "type": "tag",
        "iconColour": "white",
        "gutterIcon": true
    },
    "FIXME:": {
        "foreground": "black",
        "background": "yellow",
        "opacity": 50,
        "icon": "alert",
        "type": "tag",
        "iconColour": "#yellow",
        "gutterIcon": true
    },
    "[ ]":{
        "foreground": "none",
        "background": "none",
        "opacity": 50,
        "icon": "bookmark",
        "type": "tag",
        "iconColour": "white",
        "gutterIcon": true
    },
    "[x]":{
        "foreground": "black",
        "background": "#67C23AAA",
        "icon": "checklist",
        "type": "tag",
        "iconColour": "#67C23A",
        "gutterIcon": true
    }
},

# i18n Ally

{
  "i18n-ally.localesPaths": ["static/lang"],
  "i18n-ally.keystyle": "nested",
  "i18n-ally.namespace": true,
  "i18n-ally.pathMatcher": "{locale}/*.json",
  "i18n-ally.enabledParsers": ["json", "js"],
  "i18n-ally.sortKeys": true,
  "i18n-ally.annotations": true,
  "i18n-ally.sourceLanguage": "zh",
  "i18n-ally.displayLanguage": "zh",
  "i18n-ally.translate.engines": ["google-cn", "google", "deepl"]
}