This topic contains 2 replies, has 0 voices, and was last updated by sklett 10 years, 2 months ago.

  • Author
    Posts
  • #4680

    sklett

    I’ve been using a long ago retired eclipse version and plugin called JSEclipse (Adobe bought and killed it, I think). I’ve just recently installed a fresh Eclipse installation and the SuiteCloudIDE. I’m fighting the auto-formatting every step of the way! Granted I don’t use the common javascript K&R Indentation style, I spend most my time with C# and C++ and as such prefer the “Allman” style with curly braces on their own lines. I can’t seem to get this to work in SuiteCloudIDE. I’ve edited the templates contained in Window > Preferences > JavaScript > Editor > Templates.

    Another issue is the indenting. I’ve set Window > Preferences > General > Editors > Text Editors to “insert spaces for tabs” yet it still inserts tabs. I’ve restarted Eclipse, no difference.

    Do any of you have experience configuring how the SuiteCloudIDE behaves in these regards?
    This is a cached copy. Click here to see the original post.

  • #4681

    kcng

    Try going to Window –> Preferences –> JavaScript –> Code Style –> Formatter.

    Create a new profile and edit it.

    There should be a tab “Indentation”, and under “General settings”, there’s a tab policy, select “Spaces only”.

  • #4682

    sklett

    Thanks for the info. This partially solved my problem but creating a new profile opening up other doors to change settings to what I want. The indentation is still frustrating in some circumstances but it’s usable.

    Thanks again.

You must be logged in to reply to this topic.