Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VS2015 theme color for #region

I'm using vs2015, and I like to set #region xyz.... to a black bold font.

By changing "PreProcessor Text", and "Preprocessor Keyword". I was able to give them that clear bold look. However when i hide code by collapsing a #region that bold colour is lost. I only want the #region to be black bold, and not all other collapsed function/methods. Is that possible in VS2015 ?

like image 282
Peter Avatar asked Dec 01 '15 15:12

Peter


People also ask

How do I change the color of my Visual Studio theme?

Change the color themeOn the menu bar, choose Tools > Options. In the options list, choose Environment > General. In the Color theme list, choose either the default Dark theme, the Light theme, the Blue theme, or the Blue (Extra Contrast) theme.

What do the different colors mean in Visual Studio?

Here's your quick reference to the colors and icons in the editor window's right-hand margin: Yellow: The line has been changed but not yet saved. Green: The line has been changed and saved. Orange: The line has been changed, saved, and the change undone. Little square dots in the middle of the margin: Break points.

Which theme is good for eyes in Visual Studio?

Noctis Lux Noctis is a Visual Studio Code theme family that includes 8 dark and 3 light color themes. According to the theme's description, it was designed to “be easy on the eyes thus reducing the eye strain”. Noctis Lux is one of the light themes of the family.


2 Answers

After looking at this and other posts on the Internet, this is what worked in VS 2015 for me:

#region and #endregion keywords: Preprocessor Keyword [immediately applied]

Text after the #region keyword: Preprocessor Text [immediately applied]

Collapsed region: Collapsed Text (Collapsed) [must restart Visual Studio]

A Picture

like image 61
TxCsharper Avatar answered Sep 26 '22 03:09

TxCsharper


In the Visual Studio Fonts and Colors dialog, find items named "Collaps...". You can play with colors there.

You can make a collapsed region font bold by changing message box font in the system display properties to be bold. But don't tell anyone about this because if M$ discovers and patches this loophole you will get stuck with non-bold font for another 10 years. :)

like image 29
YuriyGulyayev Avatar answered Sep 25 '22 03:09

YuriyGulyayev