How can I remove duplicate lines in Visual Studio Code?

asked9 years ago
last updated6 years ago
viewed147.5k times
Up Vote221Down Vote

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