visual-studio-codefind-replace

"Replace All" does nothing when using the "Replace in Selection" feature in Visual Studio Code


Replacing in selection is a crazy difficult process - and it apparently does not even work. Getting to the point of even having Replace in Selection enabled we need to:

Then we can try to do replace in selection by:

enter image description here

The replacement selections dialog is on the upper right . I have put in 'space' for the find and nothing/empty for the replacement.

enter image description here

How to replace all at one swoop? Hovering for a while gives the nominal answer:

enter image description here

But CMD-Enter does *nothing. Actually ENTER does nothing either. This Find in Selection is inoperative??


Solution

  • There is an additional step I found by trial and error: we need to tab to the Replace field and then hit CMD-ENTER.

    This whole process is rather hard to believe about how cumbersome to do for a core/essential editing capbility.