MonoDevelop formats my code to this:
if (Input.GetKey (KeyCode.Space)) {
}
when I try to write this:
if (Input.GetKey (KeyCode.Space))
{
}
How do I disable it?
MonoDevelop formats my code to this:
if (Input.GetKey (KeyCode.Space)) {
}
when I try to write this:
if (Input.GetKey (KeyCode.Space))
{
}
How do I disable it?
Tools >> Options >> Text Editor >> Behavior // Automatic behaviors // Enable on the fly code formatting (disable)
Found the answer:
It turned out that the
solution/project itself had a
different code formatting applied and
it was overriding my settings from the
preferences.To adjust the solution/project
specific settings, right click on the
Solution/Project and choose Options.
Under Source Code->Code Formatting->C#
source are the actual tab width and
indent width settings for this
solution/project that are applied upon
code formatting.
Mobiletainment