Provides 2 commands
remove-empty-lines.inDocument
remove-empty-lines.inSelection - can be used without selection (will remove all adjacent empty lines)

Settings
remove-empty-lines.allowedNumberOfEmptyLines
Example: "remove-empty-lines.allowedNumberOfEmptyLines": 1,

⚠⚠⚠ Extension doesn't define any keyboard shortcuts
📚 How to open keybindings.json =======>
DEMO: Pass allowed number of empty lines as arguments in keybindings.json
{
"key": "ctrl+shift+9",
"command": "remove-empty-lines.inDocument",
"args": 0
},
{
"key": "ctrl+shift+9",
"command": "remove-empty-lines.inSelection",
"when": "editorHasSelection",
"args": 0
},
{
"key": "ctrl+shift+8",
"command": "remove-empty-lines.inDocument",
"args": 1
},
{
"key": "ctrl+shift+8",
"command": "remove-empty-lines.inSelection",
"when": "editorHasSelection",
"args": 1
},
| |