I have read several entries about the find and replace functionality. However - I am very unhappy with it and I can't find an answer here yet.
My issue: When I want to replace something in a defined section I get per default all occurences in all files displayed. But even just in my one file there is a long list of places coming up with no way to identify, where each of these occurences actually is.
I have attached a screenshot, not sure how that will show up in the forum.
On the right the section marked where I want to replace the sequence '[0]['
To the left I get 436 results with no indication where they actually are and where the selected section is.
I can't find options to 'Replace in selected section only' or so. Is it me, am I doing something wrong?
IDE2.x is great, the replace function so far has been a pain and a risk. Just as a feedback.
This means, I have to click through the list to the left in order to find - step by step or rather click by click - the section, I have already highlighted? Seriously?
BTW: Even then - the selection in the Editor Window is then gone. Its pretty weird .....
Sorry, this is becoming pretty complicated for a very simple function.
I want to replace something, probably a number of occurences , else I would just edit.
I select the section, where I want certain sequences of text/code to be replaced by someting else
When selecting 'Replace' as a function I now expect that a tool/windows pop ups, that offers me to replace something IN THE SECTION I HAVE HIGHLIGHTED before I chose the tool 'Replace'. This is 'good' software practise in thousands of applications.
Sorry for delayed response - I am not fulltime on these things.
I have tried the proposal to use Ctrl + H but I dont get what it gives me. It is still not limiting the search & replace area to the area I have selected on beforehand. I don't get it.
.... and when I see all these search results to the left - how could I know where each of these entries/finds actually is ? (????) There is no line no., no indicator ... its just a bunch of text ....
I dont know why VS Code is most popular but I guess it is not for the Search and Replace functionality. A general statement or assessment doeesn't necessarily apply to any detail of a software or might be even in contrary.
Take a look at the partial screen shot in post #2 Hover over the icon to the right of the down arrow symbol. Note the tooltip that appears as illustrated in the screen shot
It is a standard Windows shortcut, just like Ctrl+C, Ctrl+X and Ctrl+V, not a secret.
If you really want to get to the replace dialogue from the menu try Edit/Find to bring up the find dialogue then click the right pointing arrow icon to the left of the field where you enter the text to be found. Hover over it and you will see a tooltip
I've used Arduino IDE 2.x and VS Code daily for the last 3.5 years and am very satisfied with the Search and Find capabilities. They are better than the equivalent features in any other editor or IDE I've worked with.
The IDE's keyboard shortcuts are listed and customizable via File > Advanced > Keyboard Shortcuts.