Vex Edit String Window: Search and Replace Highlighted Only? -> NO!

   655   7   0
User Avatar
Member
1007 posts
Joined: April 2017
Offline
Hi!

I've got about 40 lines of code and I need to replace "string" by "float" for the last 20 lines only. In the editor (Alt + E in a wrangle) I have the option to "Replace All" but I don't get how to replace in the hightlighted text only. Is it possible?

...at worst, I'll just replace all and copy paste the text I need....

-Olivier
Edited by olivierth - Nov. 21, 2023 14:35:14
User Avatar
Member
7771 posts
Joined: Sept. 2011
Online
There is no find and replace in highlighted function. Just do it the old way and hit replace a bunch of times until it's changed all the ones you want to change.
User Avatar
Member
1007 posts
Joined: April 2017
Offline
Alright, thanks for the info!

-Olivier
User Avatar
Member
201 posts
Joined: Jan. 2013
Offline
You can make Alt + E hotkeys to open an external code editor where it is more convenient and easier to do it and save the changes to be applied in the snippet window.
User Avatar
Member
7771 posts
Joined: Sept. 2011
Online
alexwheezy
save the changes to be applied in the snippet window.

That part never works for me.
User Avatar
Member
201 posts
Joined: Jan. 2013
Offline
jsmack
alexwheezy
save the changes to be applied in the snippet window.

That part never works for me.

Hmm, maybe it doesn't work with any IDEs. When I tried saving code through sublime or neovim it worked.
User Avatar
Member
2041 posts
Joined: Sept. 2015
Offline
I just copy and paste in Sublime Text for such things since it has search and replace for selected text.
Edited by BabaJ - Nov. 21, 2023 15:59:57
User Avatar
Member
7771 posts
Joined: Sept. 2011
Online
BabaJ
I just copy and paste in Sublime Text for such things since it has search and replace for selected text.

I just make a compiler directive to change the meaning of one thing to the other.
  • Quick Links