How can I remove duplicate lines in Visual Studio Code?

Say you have the following text:

abc
123
abc
456
789
abc
abc

I want to remove all “abc” lines and just keep one. I don’t mind sorting. The result should be like this:

abc
123
456
789

9 Answers
9

Leave a Comment