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

QML/JS Editor removes semicolons when reformatting

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • Qt Creator 4.6.1
    • Quick / QML Support
    • None

      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.

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

            qtqmlteam Qt Qml Team User
            shantanutushar Shantanu Tushar
            Votes:
            7 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes