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

Insert new files in SOURCES, HEADERS and FORMS sections in alphabetical order

    XMLWordPrintable

    Details

    • Type: Suggestion
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None

      Description

      When adding new files to a project or when renaming files using Qt Creators tools for that, these files are always added to the end of their respective sections. That causes merge conflicts if more than one developer adds files, as they both end up at the bottom of the section. This always requires manual editing to fix, if only to add the now missing \.

      It would be beneficial if creator would not insert the files at the end of the section, but just before the first item that is "bigger" sorting-wise. That means that if your list is alphabetically sorted already, it would still be after creator has inserted the file in the project, but it would not re-sort the whole list.

      The added benefit would be that for most new classes, only one line per section would be touched instead of two, as no \ would need to be added to the previous line when it is inserted anywhere but as the last item. That makes for cleaner commits.

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              dt Daniel Teske
              Reporter:
              andre André Somers
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes