Version: (using Devel) OS: Linux It would be cool if KDevelop had support for renaming files, ideally from right-clicking in the project tree. Renaming a file should: - Rename the .cpp and the .h file - Tell the VCS system about it (in SVN, that would be 'svn mv') - Update the CMakeLists.txt or whatever other project system is being used - Update all #include statements - Update header guards - Maybe update the filename in the license comment, sometimes it is there. Ideally, KDevelop would also trigger a optional file rename if a user tries to rename a class and KDevelop detects that the class has the same name as the file. Currently, renaming a file in C++ is really cumbersome.
Current state of things: Works (= generic code is working, bugs (if any) should be filled per plugin): - Tell the VCS system about it (in SVN, that would be 'svn mv') - Update the CMakeLists.txt or whatever other project system is being used Left to do (in *my* order of *significance*): - Update all #include statements - Update header guards - Maybe update the filename in the license comment, sometimes it is there. (Probably it should search-n-replace in all comments, e.g. in cases of "See file somefile.cpp for examples/comments/other stuff") - Rename the .cpp and the .h file
*** Bug 265236 has been marked as a duplicate of this bug. ***
Now the .cpp and .h files are renamed as well. Left to happen, update include statements and header guards. Here I'm unsure that this has to happen...