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

QmlJSEditor: Automatic indentation breaks after user handles quotes wrong

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P4: Low
    • None
    • Qt Creator 4.7.0-beta2
    • Quick / QML Support
    • Linux/X11

    Description

      Steps to reproduce:

      • if it matters: I'm using clean settings
      • create Quick Application - Empty from template
      • inside the Window element
        • add a Text element
          • add property text and give it some string value, but hit Enter with having the text cursor still before the closing quote
          • use Backspace to return to the line before
          • use End or CursorRight to move behind the closing quote and hit Enter again (places cursor already wrong at the begin of the line)
          • add another property or item inside the Text element or anywhere else where it would be valid

      Current result: indentation is now broken for the whole document if you try to use indent line (Ctrl+I).

      Note: Using Ctrl+A and Ctrl+I still works.

      Attachments

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

        Activity

          People

            qtqmlteam Qt Qml Team User
            cstenger Christian Stenger
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes