Jano, Resharper also fixes the problem if you use Code Cleanup (Ctrl-E, C) and select the default profile 'Reformat Code'
It will remember your last profile so you can quickly run it, allbeit with a few more keys. On Fri, Jun 29, 2012 at 6:39 PM, <[email protected]> wrote: > I have ctrl+q (in editor) do the following. > > Reformat, order usings, and close the file. > > Davy > Hexed into a portable ouija board. > ------------------------------ > *From: * "Mark Thompson" <[email protected]> > *Sender: * [email protected] > *Date: *Fri, 29 Jun 2012 20:01:37 +0930 > *To: *'ozDotNet'<[email protected]> > *ReplyTo: * ozDotNet <[email protected]> > *Subject: *RE: no more Macros for VS2012! > > Hi Jano,**** > > ** ** > > I use CTRL + E, D (“Format Document” under Edit > Advanced menu in VS2010) > – this should remove any trailing whitespace from all lines as well as > format the file as per the formatting settings you have set under Tools > > Options >Text Editor.**** > > ** ** > > Cheers,**** > > Mark.**** > > ** ** > > *From:* [email protected] [mailto: > [email protected]] *On Behalf Of *Jano Petras > *Sent:* Friday, 29 June 2012 7:26 PM > *To:* ozDotNet > *Subject:* Re: no more Macros for VS2012!**** > > ** ** > > Well, I do have one usage of macros - to strip off trailing whitespace > from all lines in a code file. I have mapped it to Ctrl-W and using it all > the time. > > Is there a built-in command that can do this now? If not, I will be > affected, and will need to do something about it. > > Are any of you guys using something similar to perform this? Or hanging > whitespace at the end of lines does not bother you ? > > > Cheers, > jano > > **** > > On 28 June 2012 08:56, Arjang Assadi <[email protected]> wrote:**** > > FYI Evryone who uses macros, they are gone from VS 11 since less than 1% > of people were using them:**** > > > http://social.msdn.microsoft.com/Forums/en-US/vsx/thread/d8410838-085b-4647-8c42-e31b669c9f11/ > **** > > **** > > But as one of the posts pointed out they were being used by super users > that most likely would turn off the usage data gathering features.**** > > **** > > Regards**** > > **** > > Arjang**** > > ** ** >
