Need help with format on paste

This is the worst forum login system I have used in a long time -- microsoft's is right up there too. I have several registrations here and can't log into them. I am not able to match up usernames and email addresses to have a new password sent. I have the info saved in a password keeper so I know it's correct. I can't purge the other accounts, and I have 3 or 4 email addresses poisoned now with email already in use errors.

I am trying to restore some basic formatting support in vs2010 that I had in vs2008.
When I paste C# single lines of code into switch cases, the line is not automatically formatted. I want pasted code to line up for the context it's in. I don't know if it's RS6 or vs2010 that has the correct setting for this. I have tried every setting I can find to enable this, but so far I must have missed something. How can I turn on format on paste? It's already checked in options for the C# editor but it's not working.

3 comments

Hello Paul,

ReSharper doesn't have an option to format code on paste, but there's such
option under Tools | Options | Text Editor | C# | Formatting | General. Please
note that Visual Studio will format code on paste according to its own code
style settings. Thank you!

Andrey Serebryansky
Senior Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

This is the worst forum login system I have used in a long time --
microsoft's is right up there too. I have several registrations here
and can't log into them. I am not able to match up usernames and email
addresses to have a new password sent. I have the info saved in a
password keeper so I know it's correct. I can't purge the other
accounts, and I have 3 or 4 email addresses poisoned now with email
already in use errors.

I am trying to restore some basic formatting support in vs2010 that I
had in vs2008.

When I paste C# single lines of code into switch cases, the line is
not automatically formatted. I want pasted code to line up for the
context it's in. I don't know if it's RS6 or vs2010 that has the
correct setting for this. I have tried every setting I can find to
enable this, but so far I must have missed something. How can I turn
on format on paste? It's already checked in options for the C# editor
but it's not working.

---
Original message URL:
http://devnet.jetbrains.net/message/5318819#5318819



1

I've tried every vs2010 setting for indentation format and nothing works. I am unable to get format on paste to work.This worked okay in vs2008 with RS5.

0

It does appear to be a bug with my vs2010, not resharper.

0

Please sign in to leave a comment.