elewinso
elewinso

Reputation: 2521

is there a sublime command for removing the line the cursor is on

what Ctrl+d would do in VI I found the command duplicate_line and managed to create a shortcut for it like so:

{ "keys": ["ctrl+y"], "command": "duplicate_line"}

Upvotes: 0

Views: 55

Answers (1)

longhua
longhua

Reputation: 4242

ctrl+shift+k should remove current line.

{ "keys": ["ctrl+shift+k"], "command": "run_macro_file", "args": {"file": "Packages/Default/Delete Line.sublime-macro"} },

If you are using VI mode, d+d in command mode should remove current line, too.

Upvotes: 1

Related Questions