Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VS Code - search results - open in editor - edit inline

When searching in VS Code I use option "Open in editor" which opens search results in edit tab. The only thing I miss is editing directly in this tab. Double click takes you to the particular file and you can edit there, but editing inline would ease things up.

Is there any option how to edit inline in search results editor tab?

like image 863
michal.jakubeczy Avatar asked Mar 10 '26 12:03

michal.jakubeczy


1 Answers

You can do what you are asking with this extension: search-editor-apply-changes written by the vscode team member primarily responsible for the search editor functionality.

See, e.g., https://github.com/microsoft/vscode/issues/93031: you can use the Find widget and select its results too to perform a replace and then apply those changes for example or simply edit in place.

When you make changes in your search editor and trigger the extension those changes are made to all the affected files. Demo:

apply search editor changes

The command is searchEditorApplyChanges.apply which could be bound to your own keybinding.

like image 194
Mark Avatar answered Mar 13 '26 18:03

Mark



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!