Search Unity

Monodevelop and auto code formatting ?

Discussion in 'Editor & General Support' started by EducaSoft, Sep 2, 2011.

  1. EducaSoft

    EducaSoft

    Joined:
    Sep 9, 2007
    Posts:
    650
    Hi,

    I read on the web that monodevelop should have a feature to automatically format your code in a nice looking way (based on some rules which are probably hardcoded)

    Until now I used notepad on windows to edit my .js files , but now that I changed to monodevelop I wonder why this code formatting doesn't work in monodevelop.

    I'm also used to using it in flash, but is this not yet implemented in the unity version of monodevelop ? Or should I enable it somewhere?

    Kind regards,

    Bart
     
  2. steego

    steego

    Joined:
    Jul 15, 2010
    Posts:
    969
    Try the menu item Edit --> Format --> Format Document - is this what you're looking for?
     
  3. EducaSoft

    EducaSoft

    Joined:
    Sep 9, 2007
    Posts:
    650
    I know indeed that in the menu there is this menu item, but no matter how I mess upthe layout of my script (its javascript) this function does not do anything to my document. So I have the impression that it is really doing nothing ?
     
  4. TwisterK

    TwisterK

    Joined:
    Oct 26, 2010
    Posts:
    110
    It do format the document in some extend, but no matter how many times I try to customize the format setting, it keep format it in default setting, I using Unity 4.1 btw.

    --TwisterK