How can I remove duplicate lines in Visual Studio Code?

前端 未结 8 1246
轻奢々
轻奢々 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 09:51

    Sublime Text 3

    It has blisteringly fast native permutation functions.

    • Edit > Permute Lines > Unique or ⇧⌘U, and
    • Edit > Permute Selections > Unique

    Visual Studio Code is my daily driver. But, I keep Sublime Text on standby for these situations.

提交回复
热议问题