June 2, 2010

ucomesdag ucomesdag
Lab Rat
243 posts

Qt Creator: Search and replace in whole project

 

Would be nice to have the ability to do a search and replace in whole project.

 Signature 

Write “Qt”, not “QT” (QuickTime).

7 replies

June 2, 2010

mkfnx mkfnx
Lab Rat
31 posts

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.

June 3, 2010

Denis Kormalev Denis Kormalev
Lab Rat
1654 posts

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.

June 3, 2010

Jorj Jorj
Lab Rat
102 posts

I think this feature is on the Qt Creator todo list… But not sure if they’re in 2.0…

June 4, 2010

Thorbjørn Lindeijer Thorbjørn Lindeijer
Lab Rat
16 posts

This feature has been added for Qt Creator 2.0. Don’t wait for the final release, try a nightly build [ftp.qt.nokia.com] or the beta release [qt.nokia.com]! :-)

(nightlies are more recent and should generally be more stable at this point)

August 3, 2010

Yash Yash
Lab Rat
90 posts

Great :)

 Signature 

http://kineticwing.com : IDE
http://jals.in : Short url service

August 9, 2010

Deleted Member # 4a2 Deleted Member # 4a2
Ant Farmer
1481 posts

just tried with qt creator 2.0, its good ! :)

August 9, 2010

Tobias Hunger Tobias Hunger
Robot Herder
3386 posts

chetankjain: Thanks:-)

 
  ‹‹ QtCreator auto implement methods      Merge Qt SDK and Nokia SDK ››

You must log in to post a reply. Not a member yet? Register here!