发现一个很好用的vscode插件记录一下。
Todo-Tree可以很方便得找到标记的位置(通过侧边栏的树形图标显示文件列表),高亮标记位置(可以配置不同的tags名称,并自定义颜色)。

这是我的配置:

// settings.json
"todo-tree.general.tags": ["TODO:", "FIXME:", "BUG:"],
"todo-tree.highlights.defaultHighlight": {
"type": "text-and-comment",
"gutterIcon": true,
},
"todo-tree.highlights.customHighlight": {
"TODO:": {
"foreground": "#FFFFFF",
"background": "#FFBD2A",
"iconColour": "#FFBD2A"
},
"FIXME:": {
"foreground": "#fff",
"background": "#f06292",
"icon": "flame",
"iconColour": "#f06292"
},
"BUG:": {
"foreground": "#fff",
"background": "#be0707",
"icon": "bug",
"iconColour": "#be0707"
}
},

效果: