开发者

Customize VisualStudio syntax highlighting even more

开发者 https://www.devze.com 2022-12-24 05:09 出处:网络
I am wondering if it is possible to set VisualStudio IDE so it high开发者_StackOverflow中文版lights private/protected/public variables of the class differently as well as change formatting on locals (

I am wondering if it is possible to set VisualStudio IDE so it high开发者_StackOverflow中文版lights private/protected/public variables of the class differently as well as change formatting on locals (i.e. variables that are either passed in or declared inside a function, like this).

I did not find any such options in the normal Fonts and Colors menu of VS. Also a search on SO reveals that (at least as of 2 years ago) only add-ons provide such features. But is there a way to manually edit some file? Just because we don't get a nice UI to edit, doesn't mean underlying framework automatically doesn't support it. I mean add-ons have to plug into something to do their magic in the editor. Any insights into this issue?

Thanks!

EDIT: I have found the following information on MSDN Syntax Highlighting (Managed Package Framework). But the explanation/examples given are woefully inadequate. Does anyone know of a more extensive docs/tutorials/etc. for MPF?


I could be wrong (probably am) but I think plugins that do what you want replace the default highlighter in Visual Studio, so I don't think there is a file you can edit. As far as I know, you need a plugin. ReSharper might do this...I'm not sure though (I don't use it)

0

精彩评论

暂无评论...
验证码 换一张
取 消