Setting up Visual Studio or a plugin to "hide" regional directives in the IDE

In our team, we have people who love and hate the "#region" directive. I am looking for a way to make both parties happy. We are using VS2010.

I know that you can go to tools> options> text editor> C #> Advanced> Uncheck "Enter selection mode when opening files", as explained in this question:

How to permanently disable area addition in Visual Studio 2008

However, this is not what I want, as it disables all flushing, and the text #region still appears on the screen.

An ideal solution would simply hide the directives of the region (as if they were not in the file). It should be just an IDE trick.

If nothing exists, a pointer to a similar VS extension pattern that can be used as a baseline will be large.

+3
source share
1 answer

This guy wrote a Visual Studio extension that disables the scope.

fooobar.com/questions/177841 / ...

+1
source

All Articles