Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Qt Creator: Search and replace in whole project
ucomesdag last edited by
Would be nice to have the ability to do a search and replace in whole project.
mkfnx last edited by
I think that the dialog that shows up when you press Ctrl+Shift+F it's something similar to what you're looking for.
I'm using Qt Creator 1.3.1 and I don't know if its available in older versions.
Edit: Now I've checked the dialog I told you and I have seen that it lacks of replacement feature :(
But then I remembered other shortcut that I think that it does what you want: Set the cursor over the text that you want to replace in the whole project and then press Ctrl+Shift+R , then in the Search Results panel it will appear a tree of the files and lines where the text that you searched appears and a line edit where you can write the new text.
DenisKormalev last edited by
mkfnx Feature you've told about is refactor feature, not simple search&replace;. For example, you can change class name by this feature easily, but can't change email in all license headers.
jorj last edited by
I think this feature is on the Qt Creator todo list... But not sure if they're in 2.0...
thorbjorn last edited by
This feature has been added for Qt Creator 2.0. Don't wait for the final release, try a "nightly build":ftp://ftp.qt.nokia.com/qtcreator/snapshots/ or the "beta release":http://qt.nokia.com/developer/qt-qtcreator-prerelease#download! :-)
(nightlies are more recent and should generally be more stable at this point)
Yash last edited by
Guest last edited by
just tried with qt creator 2.0, its good ! :)