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

QML/JS Editor removes semicolons when reformatting

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • Qt Creator 4.6.1
    • Quick / QML Support
    • 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

              qtqmlteam Qt Qml Team User
              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