Create C# Script with Spaces instead of Tabs

When I create a new C# script in Unity it uses tabs instead of spaces.

Since I couldn’t figure out where the settings come from I tried changing it in MonoDevelop by setting the formatting options to use Visual Studio one’s (since I’m using Visual Studio 2017) but it didn’t help.

I can actually just reformat the file in Visual Studio (using the Ctrl-K Ctrl-D shortcut) after creating it, but it get’s kind of annoying having to do this for every new file :slight_smile:

Once you have changed your C# settings for the current solution in MonoDevelop, you’ll have to format existing documents.

Menu > Edit/Format/Format Document