Last active
March 9, 2021 19:49
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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