RE: What's up with braces?

2012-06-29 Thread David Kean
I mean the section on coding guidelines, not the rest. :) Especially not the section on FxCop at the back on of the second book, I hear a really smart person wrote that. -Original Message- From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com] On Behalf Of Stephen

Re: What's up with braces?

2012-06-29 Thread Corneliu I. Tusnea
The main reason I like the brace on the next line is because I generally use that line for a comment explaining that branch of the code. For a function is not that relevant but for an if or for statement is becomes relevant: if ( bla bla ) { // We need to initialize this because we forgot or

Re: What's up with braces?

2012-06-29 Thread Wallace Turner
comments??? are you feeling ok today mate?? On 29/06/2012 2:32 PM, Corneliu I. Tusnea wrote: The main reason I like the brace on the next line is because I generally use that line for a comment explaining that branch of the code. For a function is not that relevant but for an if or for

Re: [OT] It's not Friday, but I've had a tough last 3 weeks ...

2012-06-29 Thread Bec Carter
Haha I have one on the line now, had him for over 20 minutes. I will stretch this out for hours.. On Wed, Jun 13, 2012 at 12:42 PM, mike smith meski...@gmail.com wrote: On Thu, Jun 7, 2012 at 8:38 PM, Ian Thomas il.tho...@iinet.net.au wrote: As a follow-up –since it is nearly Friday now – I

Re: What's up with braces?

2012-06-29 Thread Michael Minutillo
if(blaBla) InitializeThisBecauseWeForgotSomething(); else WeNeedToDoSomethingElseInHere(); On Fri, Jun 29, 2012 at 2:36 PM, Wallace Turner wallacetur...@gmail.comwrote: comments??? are you feeling ok today mate?? On 29/06/2012 2:32 PM, Corneliu I. Tusnea wrote: The main reason I like

Re: no more Macros for VS2012!

2012-06-29 Thread Jano Petras
Hi Wallace, I am not aware of any shortcut key that would move cursor to the last character (ignoring whitespace) at the end of the line. As for the macro, here it is. It basically does regex find/replace on current file: Option Strict Off Option Explicit Off Imports System Imports EnvDTE

RE: no more Macros for VS2012!

2012-06-29 Thread Mark Thompson
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:

Re: no more Macros for VS2012!

2012-06-29 Thread djones147
I have ctrl+q (in editor) do the following. Reformat, order usings, and close the file. Davy Hexed into a portable ouija board. -Original Message- From: Mark Thompson matho...@internode.on.net Sender: ozdotnet-boun...@ozdotnet.com Date: Fri, 29 Jun 2012 20:01:37 To:

Re: What's up with braces?

2012-06-29 Thread mike smith
On Fri, Jun 29, 2012 at 4:47 PM, Michael Minutillo michael.minuti...@gmail.com wrote: if(blaBla)   InitializeThisBecauseWeForgotSomething(); else   WeNeedToDoSomethingElseInHere(); Nice, but sometimes my comments span lines, and who wants function names that long? S -- Meski  

Re: What's up with braces?

2012-06-29 Thread mike smith
On Fri, Jun 29, 2012 at 10:00 PM, mike smith meski...@gmail.com wrote: On Fri, Jun 29, 2012 at 4:47 PM, Michael Minutillo michael.minuti...@gmail.com wrote: if(blaBla)   InitializeThisBecauseWeForgotSomething(); else   WeNeedToDoSomethingElseInHere(); Nice, but sometimes my comments span

Re: [OT] It's not Friday, but I've had a tough last 3 weeks ...

2012-06-29 Thread Scott Barnes
I laughed at the fact of owning a computer for each of the week. Nicely played. --- Regards, Scott Barnes http://www.riagenic.com On Wed, Jun 6, 2012 at 8:05 PM, Ian Thomas il.tho...@iinet.net.au wrote: ** ** ** I’ve had several calls like this in the last couple of years (and my wife had

Re: no more Macros for VS2012!

2012-06-29 Thread Wallace Turner
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, djones...@gmail.com wrote: I have ctrl+q (in

Re: no more Macros for VS2012!

2012-06-29 Thread Jano Petras
Cheers guys, all valued advices. Will try to play with those. Thanks. On 29 June 2012 16:58, Wallace Turner wallace.tur...@gmail.com wrote: 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

Re: no more Macros for VS2012!

2012-06-29 Thread Preet Sangha
Just discovered this: http://stackoverflow.com/q/11270794/30225 Now I want use macros where ever I need Alas they're going On 30 June 2012 08:48, Jano Petras jano.pet...@gmail.com wrote: Cheers guys, all valued advices. Will try to play with those. Thanks. On 29 June 2012 16:58,