Is there an option to change auto-bracket source code formatting ?

S

Sven Fischer

After installation of Visual CSharp Studio the current settings of the source code editor
are not suitable for me.

The brackets are automaticlly set in front of the lines e.g.

if (.......)
{
statement ...
}

I would like to change it this automatic bracket inserting to a style like:

if (.....) {
statement .... }


or (when this is not possible) to turn auto insertion completely off.
How do I do this ?

Is there a way of re-formatting an already existing source code to "my" style
or are there only settings for new brackets ?

Just a notice: I don't want to start a discussion about the best bracket source code style.
I only would like to change it.

Sven
 
L

Ludwig

After installation of Visual CSharp Studio the current settings of the source code editor
are not suitable for me.

The brackets are automaticlly set in front of the lines e.g.

if (.......)
{
statement ...
}

I would like to change it this automatic bracket inserting to a style like:

if (.....) {
statement .... }


or (when this is not possible) to turn auto insertion completely off.
How do I do this ?

Is there a way of re-formatting an already existing source code to "my" style
or are there only settings for new brackets ?

Just a notice: I don't want to start a discussion about the best bracket source code style.
I only would like to change it.

Sven

Why do you want it that way, that isn't..... just kidding ;)
You mean Visual Studio I guess? Try Tools/Options -> Text
editor/C#/formatting/New Lines
 

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