Trim Pluses is a lightweight Visual Studio Code extension that removes leading plus signs (+) from the beginning of each line in the selected text, or the entire document if no selection is made. It's particularly useful for cleaning up diff outputs, versioned changelogs, or other documents with leading markers.
✨ Features
🧹 One-Click Cleanup: Automatically removes all + prefixes from lines in your selection or file.
🔍 Smart Selection Handling: Works on current selections or the full document if nothing is selected.
⚡ Fast and Efficient: Uses native VS Code APIs for quick editing without external dependencies.
🚀 Getting Started
To activate the extension:
Launch the command palette:
macOS: Cmd + Shift + P
Windows/Linux: Ctrl + Shift + P
Type and select Trim Pluses: Trim Pluses.
Using Keyboard Shortcut:
macOS: Shift + Option + T
Windows/Linux: Shift + Alt + T
This will remove all leading + characters from the selected lines or the entire document if nothing is selected.
🛠️ Development
To build and run the extension locally:
Install dependencies:
npm install
Build using esbuild:
node esbuild.js
Press F5 in VS Code to open a new Extension Development Host with the extension loaded.