介绍一个能将任意关键字高亮实现的 Visual Studio C
2021-08-14 本文已影响0人
华山令狐冲
这个扩展的名字叫 TODO Highlight:

本来是为了高亮代码注释里的 TODO,FIXME 这些关键词而设计的:

但我发现它可以高亮用户指定的任意关键字,这就非常灵活了。
在菜单 File -> Preferences -> User Settings 里打开设置:

使用配置项:todohighlight.keywords,添加自己想要高亮的关键词数组:

比如 namespace:

这样,代码中的 namespace 关键字也自动高亮了:

更多Jerry的原创文章,尽在:"汪子熙":
