DuplicateDetectorExtension 1.0.2

dotnet add package DuplicateDetectorExtension --version 1.0.2                
NuGet\Install-Package DuplicateDetectorExtension -Version 1.0.2                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="DuplicateDetectorExtension" Version="1.0.2" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add DuplicateDetectorExtension --version 1.0.2                
#r "nuget: DuplicateDetectorExtension, 1.0.2"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install DuplicateDetectorExtension as a Cake Addin
#addin nuget:?package=DuplicateDetectorExtension&version=1.0.2

// Install DuplicateDetectorExtension as a Cake Tool
#tool nuget:?package=DuplicateDetectorExtension&version=1.0.2                

DevToys-DuplicateDetector

DuplicateDetector is an extension for DevToys that finds duplicates in the lines of provided text.

DuplicateDetector in DevToys GUI

Installation

After installing DevToys, click on Manage extensions then on Find more extensions online or go to this page: nuget.org.

A filtered list of all extensions for DevToys should appear. Locate DuplicateDetectorExtension and download the NuGet package.

Then, in DevToys, click on Install extension and select the NuGet package you downloaded.

The DuplicateDetectorExtension should be available after restarting DevToys.

Usage

In GUI mode, this extension is quite straightforward. Just paste the text in the Input zone and the found duplicates are shown in the Duplicate zone. The lines of each duplicate are shown between brackets. Additionally, the duplicates are highlighted in the input text.

DuplicateDetector has two modes: Line and Offset/Length.

Line Mode

This mode searches for duplicates on whole lines. LineMode

Offset/Length Mode

This mode allows you to configure a part of the line (with a zero-based offset and a length) to search for duplicates. In this mode, the searched part of the lines is highlighted in green, while the found duplicates are still highlighted in red. OffsetLengthMode

DuplicateDetector in DevToys CLI

Installation

If you already have installed DuplicateDetector in DevToys GUI, all you have to do is to locate the plugin on your hard drive. Go to %localappdata%/DevToys/Plugin or %localappdata%/DevToys Preview/Plugin and copy the DuplicateDetectorExtension folder in the plugin folder of your DevToys CLI installation.

If you are not using DevToys GUI, download the nuget package (same as GUI Installation) and unpack (this in fine a ZIP file) it in a new folder named DuplicateDetectorExtension within the plugin folder of your DevToys CLI installation.

Usage

In CLI mode, your text you want to search duplicates on must be in a file.

Line mode

.\DevToys.CLI duplicatedetector --input "<Your File>" --mode Line

Line mode is the default mode so you can also have the same result with this more concise way :

.\DevToys.CLI dd -i "<Your File>"

OffsetLength mode

.\DevToys.CLI duplicatedetector --input "<Your File>" --mode OffsetLength --offset 2 --length 5

or

.\DevToys.CLI dd -i "<Your File>" -m OffsetLength -off 2 -len 5

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.2 473 7/22/2024
1.0.1 91 7/22/2024
1.0.0 176 7/16/2024

Adding CLI version of the tool
Adding documentation