A powerful VSCode extension for line-based text manipulation. Provides efficient tools for trimming, combining, splitting, indexing, and wrapping text selections.
- Trim: Remove whitespace from both sides, left, or right of lines
- Split: Split lines using selected text as delimiter (keep or remove delimiter)
- Combine: Join multiple lines together (with custom separator)
- Index: Add numbered prefixes to lines (start from custom number)
- Wrap: Wrap lines using templates with
$1placeholder - Remove Blank Lines: Clean up empty lines from selections
- Automatically handles different line endings:
\r\n(Windows),\n(Unix),\r(Mac) - Works seamlessly across all operating systems
- Select text in your editor
- Right-click and choose an Edlin command from the context menu
- Or use Command Palette (
Ctrl+Shift+P/Cmd+Shift+P) and search for "Edlin"
Wrap with template:
Selected: hello, world
Template: console.log($1)
Result:
console.log(hello)
console.log(world)
Combine lines:
Selected:
hello
world
Separator: ", "
Result: hello, world
Index lines:
Selected:
item one
item two
Result:
1. item one
2. item two
- Visual Studio Code 1.74.0 or higher
- Open VSCode Extensions (
Ctrl+Shift+X) - Search for "edlin"
- Click Install
Or install from VSCode Marketplace
# Install dependencies
pnpm install
# Compile TypeScript
pnpm run compile
# Run tests
pnpm testSee CHANGELOG.md for details.
MIT License - see LICENSE file for details.
- Inspired by the classic MS-DOS EDLIN editor
- Thanks to 上位者的怜悯
If you find this extension helpful, please ⭐ star the repository!
