How to change the VS Studio bracket indentation when automatically creating a new script?

Hello, I have been searching a lot but not found a clear way… so when you create an Script in Unity, it automatically indents the functions inside it like this:
I want the first Bracket to be aligned with the curly braces and be like this:
So instead of

void Start()
{
       
}

to be:

void Start(){
       
    }

Thanks!

Eww…why would you want to do that?

…but, to answer your question, Unity has a script template that it uses. I can’t remember the location, but if you Google for Unity script template, you can go and modify that template to your hearts content and it will use the edited version.

Here you go https://support.unity3d.com/hc/en-us/articles/210223733-How-to-customize-Unity-script-templates

2 Likes

God bless you!
Because it saves me 1 line and makes me not sick for every script that I make.

Never heard of needing a save a line, since it doesn’t make a difference in the final build. I guess I find it easier to read when it’s not on the same line. Glad I could be of help.

1 Like