Visual Studio Code – find and remove entire line

Try add \n to your search regex and replace with empty string.

In your case:
^import \$ from 'jquery';$\n


Update: November 2018 (version 1.30)

Multiline search input

Last month, we added support for multiline search. This month we improved the search UX to make it easier to use. Now, you can search with multiline text without having to write a regular expression. Type Shift+Enter in the search box to insert a newline, and the search box will grow to show your full multiline query. You can also copy and paste a multiline selection from the editor into the search box.

Leave a Comment