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

Rename source file

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Done
    • P3: Somewhat important
    • None
    • None
    • C/C++/Obj-C++ Support
    • None

    Description

      There should be functionality to rename source files such that after renaming the file (through a dialog perhaps) all references to the file in other source files are updated.

      For example, if I have a project that includes a pair of class header/source files like:

      poorlychosenname.h
      poorlychosenname.cpp

      And I wish to change the name of the files later, it would be nice if the references to the files would be updated as each is renamed

      so:

      rename poorlychosenname.h -> bettername.h
      in poorlychosenname.cpp:
      #include "poorlychosenname.h" -> #include "bettername.h"
      in myproject.pro:
      HEADERS += "poorlychosenname.h" -> HEADERS += "bettername.h"

      rename poorlychosenname.cpp -> bettername.cpp
      in myproject.pro:
      SOURCES += "poorlychosenname.cpp" -> SOURCES += "bettername.cpp"

      Attachments

        Issue Links

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

          Activity

            People

              erikv Erik Verbruggen
              dusktreader Tucker Beck
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes