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

JavaScript: Formatting destroys incrementation operator

    Details

      Description

      The autoformat-function dosn't recognize in-/de-cremention.

      function foo() {
        i++>1;
      }
      

      formats to:

      function foo() {
      	i + +>1;
      }
      

      Note, putting a space between the + and > results in:

      function foo() {i++ > 1;
      }
      

      Which is not ideal.

      Workarounds:

      • Set the option in Preferences/Aptana Studio/Formatter/JavaScript/>edit profile</Spaces/Operators/Arithmetic Operators/[Before: & After:] to 0.
      • Add a space between the + and >

        Attachments

          Activity

            People

            • Assignee:
              klindsey Kevin Lindsey
              Reporter:
              sourcer Steven John Lange
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Git Source Code