Visual Studio - Productivity Power Tools - RegEx 文件夹名称颜色编码 [英] Visual Studio - Productivity Power Tools - RegEx folder name Color Coding

查看:23
本文介绍了Visual Studio - Productivity Power Tools - RegEx 文件夹名称颜色编码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我项目中的路径:

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

如何根据包含以下内容的文件路径对标签进行颜色编码?:

"\Fart.Rainbows\"

看起来我的问题被问到并得到了回答

解决方案

尝试改变正则表达式

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

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

看看这是否有帮助.

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

解决方案

Try changing regular expression from

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

to

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

See if this helps.

这篇关于Visual Studio - Productivity Power Tools - RegEx 文件夹名称颜色编码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆