Uploaded image for project: 'Appcelerator Studio'
  1. Appcelerator Studio
  2. TISTUD-4082

Titanium Studio JS Formatter converts var list to one line.

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Medium
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: Backlog
    • Component/s: Editor
    • Environment:

      MAC OSX
      Titanium Studio @ latest Beta

      Description

      Similar to Aptana Studio ticket: https://jira.appcelerator.org/browse/APSTUD-448

      To Reproduce:

      Format:

          var sA = "a",
                oB = { iA : 1 },
                sB;
      

      What Happens: All variables will be put on a single line.

      What Should Happen: The above is very simple code, so that is no issue there. However, 'var' lists often contain much more code. So having them all put on a single line makes the code much less readable. The problem is compounded by the fact that there seems to be no way to limit the line length of JavaScript in Aptana.

      Notes: At a bare minimum, add a maximum line-length feature to Aptana. Alternatively, or in addition, fix the formatting of 'var' blocks so that it respects, and does not destroy, manually created formatting.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                kkolipaka Kondal Kolipaka (Inactive)
                Reporter:
                creativejunky Daniel Mahon
              • Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: