VS2005 IDE Question : How do I stop the automatic formatting for base()

  • Thread starter Thread starter Russell Mangel
  • Start date Start date
R

Russell Mangel

I am using VS2005.

When I paste source code into the code window, VS2005 formats like the
following:

public MsgRecipientReader()
: base()
{

}

I don't want :base() on a seperate line. I want it to look like the
following after pasting it into code window:

public MsgRecipientReader() : base()
{

}

I want the adjust indentation on paste feature to continue to work. I
realize I could turn this off, but then I loose all the other formatting,
which I do like.

Thanks

Russell Mangel
Las Vegas, NV
 
You can disable indentation on paste. But, there's nothing to specifically
affect the automatic formatting of the base class constructor.
To disable formatting on paste. Tools/Options, expand Text
Editor/C#/Formatting, and uncheck the Adjust indentation on paste.
 
Back
Top