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

ruby - When to use an ORM (Sequel, Datamapper, AR, etc.) vs. pure SQL for querying -

php - PHPDoc: @return void necessary? -

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