Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-20669

QML/JS Editor removes semicolons when reformatting

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P3: Somewhat important
    • Resolution: Unresolved
    • Affects Version/s: Qt Creator 4.6.1
    • Fix Version/s: None
    • Component/s: Quick / QML Support
    • Labels:
      None

      Description

      Steps to reproduce-

      1. Go to Tools > Options > Qt Quick > QML/JS Editing and enable "Enable auto format on file save"
      2. Open a QML file which has a multiline block of JS code (example attached)
      3. Make a change and save the file

      What happens-

      Semicolons are removed from the end of JS statements.

      What should happen-

      If they exist, semicolons should not be removed from the end of JS statements.

        Attachments

          Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              shantanutushar Shantanu Tushar
              Votes:
              7 Vote for this issue
              Watchers:
              9 Start watching this issue

                Dates

                Created:
                Updated:

                  Gerrit Reviews

                  There are no open Gerrit changes