Skip to content

Instantly share code, notes, and snippets.

@Dillie-O
Last active March 9, 2021 19:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Dillie-O/7ff16e8645b00d19035b71fda061cae8 to your computer and use it in GitHub Desktop.
Save Dillie-O/7ff16e8645b00d19035b71fda061cae8 to your computer and use it in GitHub Desktop.
[VSC Remove Duplicate Lines] Remove duplicate lines from text in Visual Studio Code
Open Search/Replace (CTRL+H), change settings to Regular Expressions (click .*)
Enter Find: ^(.+\n)(?=(?:.*\n)*?\1)
Leave Replace blank
Press CTRL+ALT+Enter
Profit!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment