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

Auto-format on file save for QML/JS editing breaks the formatting of .js files.

    XMLWordPrintable

Details

    • Windows

    Description

      When auto-format on file save is enabled for QML/JS editing, saving a .js file after making changes may distort or break the code formatting.

      To reproduce the issue:

      • Enable "auto format on file save" from Preferences->Qt Quick->QML/JS Editing.
      • Open the attached file with Qt Creator.
      • Edit the file and then save.

      The original code.

      class Foo {
          constructor(window) {
              
           }
          
      } 

      The saved file output:

      constructorfunction (window) {} 

      Attachments

        1. Foo.js
          0.0 kB
          Mehdi Belila
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            semih.yavuz Semih Yavuz
            mahdi.belila Mehdi Belila
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes