Regex to match file types in Powerivity Power-plugin

In the Visual Studio 2012 plug-in "Power Tools Performance" you can configure file tabs to color codes based on regular expressions. I am trying to map different types of files, such as .less.cshtml, to have different colors, but cannot make it work. For example, I tried .*\.cshtml .. Which regular expression should I use to target .less and cshtml?

+7
regex visual-studio visual-studio-2012
source share
1 answer

Follow the steps below:

  • Go to Tools -> Options
  • Go to Performance Tools β†’ Satisfactory document β†’ General
  • Make sure you check the following 2 boxes:
    • Colored tabs using regex
    • Regular expression colors take precedence over project colors
  • Go to Performance Power Tools β†’ Custom Document β†’ Color Coding
  • At the end of the list in a new row in the RegEx / Project column add (this will correspond to both file types):

     .*\.less|.*\.cshtml 
  • Select a color in the Column Color column and click OK to save the settings.

What is it.

+21
source share

All Articles