i need to partially replace text in many ide editor tabs, i am trying to use the search-replace function (the sidebar magnifying glass) with regex captured groups, like this example for identify print commands just to add \r\n at the end of printed sting
i captured the content with (.*) then i tried to include it in replacement with \1 and $1 but it prints them literally after replacIing content MESSING UP MY CODE
The Theia developers are tracking the missing capability here:
If you have a GitHub account, you can subscribe to that thread to get notifications of any new developments related to this subject:
Please only comment on the GitHub issue thread if you have new technical information that will assist with the resolution. General discussion and support requests are always welcome here on the Arduino Forum.
You are welcome. It is unfortunate that this capability is missing. Hopefully the Theia developers will be able to pull in the implementation from VS Code (the Theia codebase is somewhat based on the VS Code codebase).
I had the idea that users might be able to add this capability to Arduino IDE by installing a VS Code extension, but unfortunately I didn't find any extensions that provide the desired capability (I guess there isn't much point in creating one when VS Code already has it by default).
For now, I think the best solution will be to use an external text editor when you need to do this. Although that is a bit inconvenient, it is the sort of thing you only do very rarely so I don't think it will be too bad. As I mentioned, VS Code's "Search" view does provide this capability. VS Code is a nice text editor so it will probably be handy to have it installed anyway. In case you aren't a big fan of "M$", you can try the open source VSCodium instead of VS Code. I haven't verified whether VSCodium has the capture group replacement feature, but there is a good chance it does since it generally has basic feature parity with VS Code.