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

qml insert odd new line after opening bracket

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: Not Evaluated
    • Resolution: Unresolved
    • Affects Version/s: Qt Creator 6.0.0
    • Fix Version/s: None
    • Component/s: Quick / QML Support
    • Labels:
      None
    • Platform/s:
      Windows

      Description

      When i want to change code:

      anchors.fill: parent

      to multiline:

      anchors:

      Unknown macro: { ... }

      I usually do it like:

      anchors: { <press Enter> parent

      And QtCreator produces code below:

      anchors: {
      <odd new line>
      parent

      In c++ code it will be:

      list ls = {
      //some old code

      No new line... And this is correct.

        Attachments

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

          Activity

            People

            Assignee:
            fawzi Fawzi Mohamed
            Reporter:
            crogst Semen Sokolov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes