- Home /
MonoDevelop auto formating?
I am using MonoDevelop to write and edit JavaScript code for a game I am working on. I hear that MonoDevelop can auto format your code, but I have tried everything and cant figure out how! The only answer I could find is to use the Format > Format Document, which does not do anything.
Thanks in advance!
Answer by rutter · Apr 03, 2012 at 03:12 AM
MonoDevelop includes some pretty elaborate formatting rules for C#. I'm not aware of any built-in mechanism for JavaScript. You can check this for yourself, by going into your solution settings:
Project > Solution Options > Source Code > Code Formatting
I have tried setting those rules but they don't appear to work (for c#).
They do work for me (in c#). You can also set a key binding in tools > options > key-bindings. Bear in $$anonymous$$d that if you have syntax errors in your code, like missing a parenthese, monodevelop will not be able to auto-format.
Your answer
Follow this Question
Related Questions
A node in a childnode? 1 Answer
UnityScript auto-format? 0 Answers
Script copied exactly, yet I get the console errors 1 Answer
Unity 4.3 Monodevelop autocompletion not working for javascript names and enums 0 Answers
A question on distance 1 Answer