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

Extract function feature does not retain the original code indentation

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Done
    • P3: Somewhat important
    • Qt Creator 2.5.0-beta
    • Qt Creator 2.5.0-beta
    • Editors
    • None
    • f04be782ab6350563ac3ed87e8ef6028a0140042

    Description

      The original indentation is removed and replaced by the code style that is configured.

      Code like

       
      connect(
         this,
         SIGNAL(...),
         that,
         SLOT(...)
      );
      

      is reformatted to

       
      connect(
              this,
              SIGNAL(...),
              that,
              SLOT(...)
              );
      

      which is not desired.

      Of course code that is indented a few times needs to be relocated after extraction. But everything below the first line should be kept relative to it.

      Attachments

        For Gerrit Dashboard: QTCREATORBUG-6797
        # Subject Branch Project Status CR V

        Activity

          People

            leamelo Leandro T. C. Melo
            matto Matthias Varnholt
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes