Resharper

Resharper – Surround with Quotes (“”)

Here is an option that is very handy, but seems to be turned off by default.   Have you ever had a bit of code or text that you wanted to throw into a string, surrounded by quotes?  Well there is a context action available in Resharper that makes a context action available.  This works in the C# section, not sure if a similar option is available in other contexts.

Resharper-Surround-With-quotes

Once this is enabled, you can highlight some text in your code, pull up the context action menu (Alt-Enter) and you’ll see the option.

Resharper-Surround-Context-Menu

Advertisements

2 thoughts on “Resharper – Surround with Quotes (“”)

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s