注释标记

注释标记

参考

vscode 插件推荐 todo-tree
Xcode中使用TODO、FIXME、!!!、???、MARK 进行标记

注释标记

TODO: 标示处有功能代码待编写,使用方法:// TODO:
FIXME:标示处代码需要修正,使用方法:// FIXME:
!!!:标示处代码需要注意,使用方法:// !!!:
???:标示处代码有疑问,使用方法:// ???:
MARK:标记,和#pragma mark效果相同,使用方法:// MARK:

todo-tree

基本功能

  • 高亮

  • 侧边栏上的一个小栏目,通过点击对象,可以跳转到对应的位置.

配置

//todo-tree settings
"todo-tree.regex.regex": "((//|#|<!--|;|/\\*|^)\\s*($TAGS):|^\\s*- \\[ \\])",
"todo-tree.general.tags": [
"BUG",
"HACK",
"FIXME",
"TODO",
"XXX",
"???",
"done",
"tag",
"bug",
"fixme",
"todo",
"note"
],
"todo-tree.regex.regexCaseSensitive": false,
"todo-tree.tree.showInExplorer": true,
"todo-tree.highlights.defaultHighlight": {
"foreground": "white",
"background": "yellow",
"icon": "check",
"rulerColour": "yellow",
"type": "tag",
"iconColour": "yellow"
},
"todo-tree.highlights.customHighlight": {
"todo": {
"background": "yellow",
"rulerColour": "yellow",
"iconColour": "yellow"
},
"???": {
"background": "yellow",
"rulerColour": "yellow",
"iconColour": "yellow"
},
"bug": {
"background": "red",
"icon": "bug",
"rulerColour": "red",
"iconColour": "red",
},
"FIXME": {
"background": "red",
"icon": "beaker",
"rulerColour": "red",
"iconColour": "red",
},
"tag": {
"background": "blue",
"icon": "tag",
"rulerColour": "blue",
"iconColour": "blue",
"rulerLane": "full"
},
"done": {
"background": "green",
"icon": "issue-closed",
"rulerColour": "green",
"iconColour": "green",
},
"note": {
"background": "#f90",
"icon": "note",
"rulerColour": "#f90",
"iconColour ": "#f90"
}
},
posted @   zc-lee  阅读(94)  评论(0编辑  收藏  举报
点击右上角即可分享
微信分享提示