Delete Lines is a Sublime Text plugin that adds a new command delete_lines simulating the Delete Line Eclipse key command.
Sublime Text has a built-in macro called Delete Line.sublime-macro (ctrl + shift + k), but it works slightly different from the Eclipse' Delete Line when the selection includes the last line break.
Assuming there are three lines in the buffer and I am going to delete the second line.
Here is what the macro does.
Note that the third line is also deleted because the selection includes the line break on the second line.
This might be the right behavior, but not the expected behavior.
This plugin's delete_lines command deletes only the second line with the same selection.
The attached key bindings are ctrl + shift + k on all platforms.
{ "keys": ["ctrl+shift+k"], "command": "delete_lines" }
If you already installed Package Control...
- Press
cmd + shift + p(OS X) orctrl + shift + p(Win, Linux) to open Command Pallette. - Type
packageand selectPackage Control: Install Packagefrom the list. - Search
Delete Linesand install it.
- On GitHub, press
Download Zipbutton to download this repository as an archive. - Choose
Browse Packages...from the menu of Sublime Text to open Packages directory. - Unarchive the downloaded zip in the Packages directory.
- Restart Sublime Text.
Delete Lines plugin is licensed under MIT License.

