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

Smart indentation behavior in .js editor is broken in some cases

    XMLWordPrintable

Details

    • fcaf3d4f4c515e9c552357156d0a48b2c8359984

    Description

      The following snippets give very weird indentation behavior:

      var foo = {
          "bar" : function() {
      
                  }
      }
      
      Foo.prototype.bar = function() {
      
              }
      
      baz = function() {
      
              }
      
      var buz = new function() {
          this.baaaz = function() {
      
               }
      }
      

      The expected behavior would be:

      var foo = {
          "bar" : function() {
      
          }
      }
      
      Foo.prototype.bar = function() {
      
      }
      
      baz = function() {
      
      }
      
      var buz = new function() {
          this.baaaz = function() {
      
          }
      }
      

      Attachments

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

        Activity

          People

            ckamm Christian Kamm
            vestbo Tor Arne Vestbø
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes