[solved] search and replace within selection
-
hi there,
i try to do a search and replace on a selection of code. in the documentation it says:
"Note: If you have selected text before selecting Find/Replace, the search is conducted within the selection."
this is what i do. i select text, press ctrl+f, and then it searches the entire file for the highlighted code by default. changing what i'm searching for also lets creator search within the whole file. what am i doing wrong/missing here?thank you for your help!
-
Hi and welcome to devnet,
Which version of Qt Creator are you using on which OS ?
-
Strange, I am not experiencing that. Which type of search are you doing ? RegExp ?
-
You're welcome !
Since it's working now, please update the thread title prepending [solved] so other forum users may know a solution has been found :)
-
Right !
I forgot about this little detail, a single line selection works the same as a single word selection. You'll need to have at least a "new line" char to activate the "inside this line" search