Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/thomasrayner/rightlines


https://github.com/thomasrayner/rightlines

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

# **RightLines** VS Code Extension

**RightLines** adds commands to Visual Studio Code to identify interesting lines, and clean up files by removing lines in a variety of ways.

Install **RightLines** like any other extension in VS Code, or check it out here: [RightLines on the VS Code Marketplace](https://marketplace.visualstudio.com/items?itemName=thmsrynr.rightlines).

## Features

### Mark This Line

`Mark This Line` marks the line where the cursor currently sits.

![Mark This Line](https://github.com/thomasrayner/RightLines/raw/main/img/MarkThisLine.gif "Mark This Line")

### Clear **RightLines** Marks

`Clear RightLines Marks` removes all of the marks added to lines by **RightLines**.

![Clear RightLines Marks](https://github.com/thomasrayner/RightLines/raw/main/img/ClearRightLinesMarks.gif "Clear RightLines Marks")

### Mark A Specific Line

`Mark A Specific Line...` prompts you to enter the line number of a line to add a mark to.

![Mark A Specific Line...](https://github.com/thomasrayner/RightLines/raw/main/img/MarkASpecificLine.gif "Mark A Specific Line...")

### Mark Lines Containing

`Mark Lines Containing...` prompts you to enter a string, and marks any lines containing that string.

![Mark Lines Containing...](https://github.com/thomasrayner/RightLines/raw/main/img/MarkLinesContaining.gif "Mark Lines Containing...")

### Mark Lines Containing Selected Text

`Mark Lines Containing Selected Text` will mark any lines containing the text you have selected.

![Mark Lines Containing Selected Text](https://github.com/thomasrayner/RightLines/raw/main/img/MarkLinesContainingSelected.gif "Mark Lines Containing Selected Text")

### Delete Lines Containing

`Delete Lines Containing...` prompts you to enter a string, and deletes any lines containing that string.

![Delete Lines Containing...](https://github.com/thomasrayner/RightLines/raw/main/img/DeleteLinesContaining.gif "Delete Lines Containing...")

### Delete Lines Containing Selected Text

`Delete Lines Containing Selected Text` will delete any lines containing the text you have selected.

![Delete Lines Containing Selected Text](https://github.com/thomasrayner/RightLines/raw/main/img/DeleteLinesContainingSelected.gif "Delete Lines Containing Selected Text")

### Delete Empty Lines

`Delete Empty Lines` will do exactly what it promises to do 😁.

![Delete Empty Lines](https://github.com/thomasrayner/RightLines/raw/main/img/DeleteEmptyLines.gif "Delete Empty Lines")

### Mark Duplicate Lines

`Mark Duplicate Lines` will mark any lines that exist more than once in the document, regardless of leading or trailing whitespace.

![Mark Duplicate Lines](https://github.com/thomasrayner/RightLines/raw/main/img/MarkDuplicateLines.gif "Mark Duplicate Lines")

### Mark Duplicate Lines (skip first occurrence)

`Mark Duplicate Lines (skip first occurrence)` will mark any lines that exist more than once in the document, regardless of leading or trailing, but won't mark the first instance of each duplicate line.

![Mark Duplicate Lines (skip first occurrence)](https://github.com/thomasrayner/RightLines/raw/main/img/MarkDuplicateLinesSkipFirst.gif "Mark Duplicate Lines (skip first occurrence)")

### Delete Duplicate Lines (keep first occurrence)

`Delete Duplicate Lines (keep first occurrence)` will delete any duplicated lines in the document, except for the first occurrence of the line, ignoring leading and trailing whitespace.

![Delete Duplicate Lines (keep first occurrence)](https://github.com/thomasrayner/RightLines/raw/main/img/DeleteDuplicateLinesKeepFirst.gif "Delete Duplicate Lines (keep first occurrence)")
### Delete Duplicate Lines (keep last occurrence)

`Delete Duplicate Lines (keep last occurrence)` will delete any duplicated lines in the document except for the last occurrence of the line, ignoring leading and trailing whitespace.

![Delete Duplicate Lines (keep last occurrence)](https://github.com/thomasrayner/RightLines/raw/main/img/DeleteDuplicateLinesKeepLast.gif "Delete Duplicate Lines (keep last occurrence)")