Created
July 13, 2019 00:23
-
-
Save agustinl/446c96b15ce13aac6a041e43df755d28 to your computer and use it in GitHub Desktop.
Select distinct in VSC
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
Control+F | |
Toggle "Replace mode" | |
Toggle "Use Regular Expression" (the icon with the .* symbol) | |
In the search field, type ^(.*)(\n\1)+$ | |
In the "replace with" field, type $1 | |
Click the Replace All button ("Replace All"). |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment