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 :-)
Answer by UnityCoach · Apr 08, 2017 at 07:22 AM
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
Your answer
Follow this Question
Related Questions
Settings menu of main menu not updating in settings menu of pause menu. Unity C#, 0 Answers
C# Player Prefs & Toggle| Will not save settings 1 Answer
Need Help, Not Good At Programming.... 1 Answer
How to Undo a lot of created objects at once? [Solved] 1 Answer
How do I save the background music in the settings? 0 Answers