Visual Studio - Productivity Power Tools - RegEx folder name Color Coding

被刻印的时光 ゝ 提交于 2019-12-07 20:19:08

问题


Path in my project:

C:\Unicorns\Fart.Rainbows\Classes\someFiles.cs

How do I color code tabs based on file path containing the following?:

"\Fart.Rainbows\"

It looks like my question is asked and answered here, but I can't seem to get the regex right.

The following works in a regex tester I tried, but not in Prod Power Tools:

\b\\Fart\.Rainbows\\\b


回答1:


Try changing regular expression from

\b\\Fart\.Rainbows\\\b

to

.*\b\\Fart\.Rainbows\\\b.*

See if this helps.



来源:https://stackoverflow.com/questions/40042433/visual-studio-productivity-power-tools-regex-folder-name-color-coding

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!