VS 2010 Regex for converting C++ defines to C# constants
When porting C++ code to C#, you might want to convert all string defines to C# public string constants. Here is a convenient regex for it:
Find what:
\#define:b*{:i}:b*{:q}
Replace with:
public const String \1 = \2;
Written by Toni Petrina
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Visual studio 2010
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#