0

I like CodeRush QuickPair feature. Does anybody know how to remove quotes or braces with a shortcut? For example: Can I select

"some string"; // with quotes

and remove quotes with a shortcut and will get

some string; // without quotes

or select

(someArgument); // with braces

and remove braces and will get

someArgument; // without braces

1 Answers1

1

If I'm understanding you correctly, CodeRush does not contain this functionality at present.

However it sounds like the kind of thing that could be created as a plugin quite quickly.

If you update your question to include some before and after examples, I'm confident I could create such a plugin for you.


Update: I have created a plugin to fulfil the first requirement. That of removing Quotes from around a string.

The source is published on github and you can download the VSIX here


Could you provide a little more context in your 2nd example? It does not appear to be syntactically correct C#.

I'm interested to see what sort of code you would perform this operation on. This is also necessary in order to make the plugin available in the correct context.

Rory Becker
  • 15,551
  • 16
  • 69
  • 94
  • Is this really an answer to the question or a comment? – Micha Dec 12 '13 at 13:39
  • 1
    An answer. It serves as is for now because it indicates the functionality is not available at present. It will be a *better* answer, once I have constructed the plugin. – Rory Becker Dec 12 '13 at 15:34
  • Thanks Rory! It's helpful for me. –  Dec 16 '13 at 10:19
  • You're quite welcome Ashot. If you can clarify the second set of examples I can build another plugin so help you there aswell. :) – Rory Becker Dec 16 '13 at 11:17