Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Duplicate-lines-finderNew to Visual Studio Code? Get it now.
Duplicate-lines-finder

Duplicate-lines-finder

tlevesque2

|
35,976 installs
| (6) | Free
Identify and list duplicate lines
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

duplicate-finder package

A very simple VS Code extension to identify duplicated lines.

Select lines where you want to list the lines appearring twice or more, press Cmd+Alt+L and it will print bellow the duplicated lines.

It doesn't remove the duplicates, a lot of extensions are doing it well already.

Example:

List Duplicated lines with command "Duplicate Finder: Find and list duplicate lines"
or shortcut Cmd+Alt+L or Ctrl+Alt+L:

abc
cbd
cbd
cde
cde
def

=> cbd
=> cde

List Duplicated lines with number of duplicates with command "Duplicate Finder: Find, list and count duplicate lines" or shortcut Cmd+Alt+K or Ctrl+Alt+K:

abc
cbd
cbd
cde
cde
cde
def

=> cbd: 2
=> cde: 3

List single lines with command "Duplicate Finder: Find and list unique lines"

abc
cbd
cbd
cde
cde
cde
def

=> abc
=> def

List all lines with number of duplicates with command "Duplicate Finder: Find, list and count all lines"

abc
cbd
cbd
cde
cde
cde
def

=> abc: 1
=> cbd: 2
=> cde: 3
=> def: 1

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft