How can I remove duplicate lines in Visual Studio Code?

前端 未结 8 1244
轻奢々
轻奢々 2020-12-12 09:28

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. T

8条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-12 10:01

    Install the DupChecker extension, hit F1, and type "Check Duplicates".

    It will check for duplicates and ask if you want to remove them.

提交回复
热议问题