Uploaded image for project: 'Aptana Studio'
  1. Aptana Studio
  2. APSTUD-4375

Implement comma-first formatting for JavaScript

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Low
    • Resolution: Unresolved
    • Affects Version/s: Aptana Studio 3.0.8
    • Fix Version/s: None
    • Component/s: Formatting

      Description

      To make it easier to handle var statements and data definitions, some people like to use "comma-first" syntax.

      It looks like this:

         function () {
             var foo
             , bar
             , myObj = {
                 foo: 1
                 , bar: 2
             }
             , etc
             ;
         } 
      

      See also http://ajaxian.com/archives/is-there-something-to-the-crazy-comma-first-style for an editorial.

      Could this be made an optional style for the formatter?

        Attachments

          Activity

            People

            • Assignee:
              pinnamuri Praveen Innamuri (Inactive)
              Reporter:
              wmertens Wout Mertens
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                Git Source Code