Quick way to remove surrounding backet/parenthese/block in Visual Studio 2010 + Resharper ? (Reverse surround with) -


is there can reverse "surround with"?

from:
((type)myobject);

to:
(type)myobject;

from:
if/while/try/using... {
lots of code here....
}

to:
lots of code here....

try structural search , replace (see jetbrains .net tools blog, jetbrains tv additional guidance)

for first example, can use following pair of patterns:

search pattern: (($type$) $var$) replace pattern: ($type$) $var$

where $type$ type placeholder, , and $var$ identifier placeholder.

to play bit more structural search , replace, might want download sample ssr pattern catalog resharper web site


Comments

Popular posts from this blog

unicode - Are email addresses allowed to contain non-alphanumeric characters? -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

c++ - Convert big endian to little endian when reading from a binary file -