0

How to delete a line in sublime text the same way it is deleted in intellij ?

Which is : line is deleted, and cursor is back to previous position on the newly displayed line.

2 Answers 2

7

Ctrl+Shift+K is the default shortcut to delete a line in Sublime Text. However, I'm not sure it will replicate the behavior you are looking for.

Sign up to request clarification or add additional context in comments.

Comments

0

No, Ctrl+Shift+K sent the cursor back to the beginning of the line, which is most of the time not the required behaviour. I want the cursor not to move back but to stay as close as possible to where it was before (horizontally speaking).

The solution was to record a macro, where you toggle a bookmark, delete line above, go back to bookmark, and delete bookmark. Then bind the macro to a shortcut.

1 Comment

Please at least add a comment if there is a downvote. I didn't say anything bad about sublime so please add reasonning.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.