When I use code formatting with MonoDevelop (Shortcut: Ctrl+I), everything gets double-indented:
namespace Example
{
public class Test
{
public static void Main(string[] args)
{
for (int i = 0; i < 10; i++)
{
Console.WriteLine("{0}: Test", i);
}
//this would be the desired indentation width!
//Not this!
}
}
}
Checking with the preferences under Source Code -> Code Formatting -> C# source code under Text Style, Tab width and Indent width are set to 4. Nevertheless, I get an indent width of 8 instead of 4, so twice as much indentation.
I'm working on a team-project with Unity3D and using MonoDevelop-Unity version 4.0.1.