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

QtCreator duplicate closing brace when pressing "Enter" inside empty braces

    XMLWordPrintable

Details

    • Linux/Wayland
    • 8c7d4414d (master)

    Description

      When placing cursor inside an empty brace pair

      void f()
      { // cursor is here
      } 

      and pressing "Enter",  QtC inserts not only an empty line, but also one more closing brace:

      void f()
      {
          // cursor is here
      }
      }

       Does not happen when initial brace pair is in the single line.

      Attachments

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

        Activity

          People

            artem.sokolovskii Artem Sokolovskii (Inactive)
            eugeneshalygin Eugene Shalygin
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes