I like to vertically align my code and Monodevelop (v 5.9.6) automatically removes white spaces from my lines of code after I put a semicolon.
Ex :
string other = "something";
int jad = 9
becomes :
string other = "something";
int jad = 9;
What's worse, hitting undo will undo the whole thing, not just the semicolon like in most editors (which just undo the formatting) so I have to place the semicolon and then vertically align so that it leaves it.
Is there an option to stop this behaviour?
Assuming you're on MacOS, there's a section under Preferences called Source Code. In there is a subsection called Code Formatting and there you'll find the choice C# source code. In the right half of the preferences window, you'll see a Policy menu and two tabs Text Style and C# Format. Clicking the Edit button under C# Format will show you a lot of things you can tweak. But your particular coding preference is not possible I'm afraid.