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

Improve indentation in CMake files

    XMLWordPrintable

    Details

    • Type: Suggestion
    • Status: Reported
    • Priority: Not Evaluated
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Editors
    • Labels:

      Description

      Some users might want to perform vertical alignment of arguments passed to CMake functions / macros, e.g.

      set(FRUITS APPLE
                 BANANA
                 CHERRY)
      

      If one inserts a newline after the line with CHERRY), the cursor is placed as so (with | denoting the cursor position):

      set(FRUITS APPLE
                 BANANA
                 CHERRY)
              |
      

      It'd be nice if Qt Creator would instead indent based on the location of the matching opening parenthesis, so that the cursor would be placed on the same column as the start of the set() call.

        Attachments

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

          Activity

            People

            • Assignee:
              davschul David Schulz
              Reporter:
              kevinushey Kevin Ushey
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                Gerrit Reviews

                There are no open Gerrit changes