#region

Hi.
I can in VS change color of preprocessor command, for example, to green, but name still default (black).
Can I did, that whole string have some color: #region MyRegion - whole string  wil be green color?

And second question: how I can quick create region with some name? I select some code and want to put this code to new region.

1 comment
Comment actions Permalink

Hello,

I can in VS change color of preprocessor command, for example, to
green, but name still default (black).


My bet is that R# is not coloring these. Must be Visual Studio's own feature.
So it's up to its settings.

And second question: how I can quick create region with some name? I
select some code and want to put this code to new region.


ReSharper | Tools | Templates Explorer | Surround Templates tab — might enregion
selection with that

If this should be done for methods on a regular basis, try ReSharper | Options
| Code Editing | C# | File Layout, with its options for generating regions
upon reformatting.


Serge Baltic
JetBrains, Inc — http://www.jetbrains.com
“Develop with pleasure!”


0

Please sign in to leave a comment.