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

[Reg 14.0.0 -> 16.0.1] Excessively large auto-indentation in complex *.js files

    XMLWordPrintable

Details

    • 8b43044cd (17.0)

    Description

      Steps to reproduce

      1. Download the attached sample file
      2. In Qt Creator, select "Open File or Project..." and select the downloaded file without loading any project
      3. Select all the content (Ctrl+A)
      4. Unindent the whole file (press Shift+Tab repeatedly)
      5. Auto-indent the whole file (Ctrl+I)

       

      Outcomes
      Each "step" of the indentation is huge:

       

      Observations

      • Enabling or disabling "Auto detect" doesn't seem to have an effect
      • If I copy the whole file's contents and paste them inline into a *.qml file, the auto-indentation becomes a lot more sensible

      Attachments

        1. Utils.js
          67 kB
        2. qtc-huge-indentation.gif
          qtc-huge-indentation.gif
          465 kB

        Issue Links

          For Gerrit Dashboard: QTCREATORBUG-32861
          # Subject Branch Project Status CR V

          Activity

            People

              davschul David Schulz
              skoh-qt Sze Howe Koh
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes