V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
SGL
V2EX  ›  Visual Studio Code

vscode 插件求推荐,高亮代码注释中的 Note

  •  
  •   SGL · 145 天前 · 1292 次点击
    这是一个创建于 145 天前的主题,其中的信息可能已经有所发展或是发生改变。
    TODO+插件可以罗列出所有的 Note 和 TODO(我目前就用到了这俩,其他的没关注)来统一索引。
    然后 TODO Highlight 插件可以在代码里面高亮 TODO 标签。
    但是 Note:虽然能被 TODO+索引,但是在代码里面就没有办法高亮了。
    V 友有这个场景吗。
    2 条回复    2025-08-14 16:12:57 +08:00
    Wilson233
        1
    Wilson233  
       142 天前
    我用的是这个插件: https://marketplace.visualstudio.com/items/?itemName=Gruntfuggly.todo-tree

    我看了下配置,可以自定义:
    ```
    "todo-tree.highlights.defaultHighlight": {
    "icon": "alert",
    "type": "text",
    "foreground": "red",
    "background": "white",
    "opacity": 50,
    "iconColour": "blue"
    },
    "todo-tree.highlights.customHighlight": {
    "TODO": {
    "icon": "check",
    "type": "line"
    },
    "FIXME": {
    "foreground": "black",
    "iconColour": "yellow",
    "gutterIcon": true
    }
    }
    ```
    SGL
        2
    SGL  
    OP
       20 天前
    @Wilson233 感谢,用了配置文件确实不错。
    关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2803 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 19ms · UTC 14:57 · PVG 22:57 · LAX 07:57 · JFK 10:57
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.