Join Lines Context Aware
A language-agnostic, context-aware Join Lines command for VS Code.
Features
- Merge string literals - single or double quote,
+ , . , or nothing as concat operator
- Merges line and docblock comments (supports
// , # , * , ; and '--')
- Removes trailing commas and omits spaces when merging onto a line with an opening or closing brace (
[] , {} , () , or <> )
Usage
After installing the extension, add a keybinding for it. The default Join Lines
command is ctrl+j or cmd+j on Mac.
{
"key": "ctrl+j",
"command": "join-lines-context-aware.join"
}
Release Notes
Users appreciate release notes as you update your extension.
1.0.2
- Add support for Haskell style comments
-- , thanks @Release-Candidate
1.0.1
- Fix joining the first two lines of C-style block comments, thanks @Fbonazzi
1.0.0
| |