remove-empty-lines.inDocument
- Removes empty lines in the entire documentremove-empty-lines.inSelection
- Removes empty lines in selection. Can be used without selection (will remove all adjacent empty lines)
Setting | Default | Description |
---|---|---|
remove-empty-lines.allowedNumberOfEmptyLines | 0 | Number of allowed consecutive empty lines. |
remove-empty-lines.runOnSave | false | Run remove empty lines on document save event. |
remove-empty-lines.onSaveReason | {"manual":true,"afterDelay":false,"focusOut":false} | Controls which save event triggers running the extension (for #remove-empty-lines.runOnSave# setting). |
Example: "remove-empty-lines.allowedNumberOfEmptyLines": 1,
"remove-empty-lines.allowedNumberOfEmptyLines": 0,// allow 0 in all files
"[markdown]": {
"remove-empty-lines.allowedNumberOfEmptyLines": 1,// allow 1 in markdown files
},
📚 How to open 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
},