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

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
 
G

Guest

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top