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

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

  •  
  •   SGL · 13 天前 · 762 次点击
    TODO+插件可以罗列出所有的 Note 和 TODO(我目前就用到了这俩,其他的没关注)来统一索引。
    然后 TODO Highlight 插件可以在代码里面高亮 TODO 标签。
    但是 Note:虽然能被 TODO+索引,但是在代码里面就没有办法高亮了。
    V 友有这个场景吗。
    1 条回复    2025-04-14 13:37:32 +08:00
    Wilson233
        1
    Wilson233  
       10 天前
    我用的是这个插件: 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
    }
    }
    ```
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   3992 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 04:08 · PVG 12:08 · LAX 21:08 · JFK 00:08
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.