# RemoveDuplicateLines - A Sublime Text Plugin
A plugin for [Sublime Text](http://www.sublimetext.com/) that allows you to remove duplicate lines from files and selections.
## Installation
* **Package Control**
1. [Install Package Control](https://packagecontrol.io/installation)
1. [Bring up the Command Palette](https://sublime-text.readthedocs.io/en/stable/reference/command_palette.html#how-to-use-the-command-palette) and type "Package Control: Install Package"
1. Type "RemoveDuplicateLines" and press enter
* **Directly**
1. Locate the `Packages` folder in the [data directory](https://docs.sublimetext.io/guide/getting-started/basic-concepts.html#the-data-directory)
1. Download the [latest version of RemoveDuplicateLines](https://github.com/ilyakam/RemoveDuplicateLines/releases/latest)
1. Extract the archive into the `Packages` folder
* **Development**
1. [Follow the instructions on the `CONTRIBUTING` guide](./CONTRIBUTING.md#getting-started)
## Usage
* Keyboard - shiftF5 on all platforms. You might also need to hold (fn) depending on your OS/BIOS configuration.
* Command Palette - press cmdshiftp (or ctrlshiftp), type "Remove Duplicate Lines," and press enter.
* Menu - open the `Edit` menu and click on the `Remove Duplicate Lines` command option towards the bottom.
This plugin can be used in two different ways:
1. **Without a selection**
This removes all duplicate lines, leaving the first occurrence of each line to be unique to the entire file.
| Before | After |
| :----- | :---- |
|  |  |
1. **With a selection**
This removes all duplicate lines within one or more selection(s).
| Before | After |
| :----- | :---- |
|  | 
## Changelog
See [CHANGELOG.md](./CHANGELOG.md)
## Contributing
See [CONTRIBUTING.md](./CONTRIBUTING.md)
## License
See [LICENSE.md](./LICENSE.md)