# 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

# 代码片段

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

//
1

# 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
    }
},
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49

# 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"]
}
1
2
3
4
5
6
7
8
9
10
11
12