usernamehw / vscode-join-lines

Extension for VSCode to join lines.

Home Page:https://marketplace.visualstudio.com/items?itemName=usernamehw.vscode-join-lines

Repository from Github https://github.comusernamehw/vscode-join-linesRepository from Github https://github.comusernamehw/vscode-join-lines

vscode-join-lines

Join lines by separator specified in settings, keybinding argument or entered by hand.

Demo

demo

Demo with settings.json:

"joinLines.defaultSeparator": "__",

demo_settings

Demo with custom entered separator

demo_enter_separator

From a keybinding

{
	"key": "ctrl+shift+9",
	"command": "joinLines.joinLines",
	"args": {
		"separator": "###",
		"wrapLeft": "'",
		"wrapRight": "'"
	}
}

Commands (2)

Command Description
joinLines.joinLines Join Lines: Join
joinLines.joinLinesWithSeparator Join Lines: Join With Separator

Settings (3)

Setting Default Description
joinLines.defaultSeparator " " Symbol that is used when joining lines.
joinLines.wrapLeft "" Symbol to wrap the line on the left.
joinLines.wrapRight "" Symbol to wrap the line on the right.

About

Extension for VSCode to join lines.

https://marketplace.visualstudio.com/items?itemName=usernamehw.vscode-join-lines

License:MIT License


Languages

Language:TypeScript 87.3%Language:JavaScript 12.7%