Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-111937

It would be nice if qmlformat can have line wrapping and spaces in blocks

    XMLWordPrintable

Details

    • All

    Description

      It would be nice of qmlformat have mechanism to set number of characters in a line for line wrapping for code within QML and once that character limit hits it should insert a line break so that it will not exceed the character limit.

      Also it would be great if have some feature to being able to specify the number of spaces between blocks, so that following can be formatted 

       QtObject {
      id: d
      }
      ListModel {
      }

      and looks as following with a 1 line break after each Component block:

      
      QtObject {
      id: d
      }
      
      ListModel {
      }
      
      ListModel {
      } 

       

      Attachments

        Activity

          People

            qtqmlteam Qt Qml Team User
            irfan.omair@digia.com Irfan Omair
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: