Reputation: 9875
Is there a way to delete all the lines between two particular line number via command pallete in Sublime Text 3?
I frequently run into the situation of having a large file and needing to delete a few thousand lines between two particular line numbers. It'd be nice to not have to wait for the render due to user scrolling and just let the CPU do the delete in the background.
Upvotes: 0
Views: 1890
Reputation: 1703
There is a way to delete all lines between two particular line number.
CTRL
+ G
. Text input will appear.:line_number
. For example :400000
ENTER
to set cursor on this lineEdit
> Mark
> Set Mark
. Circle near line number will appear.CTRL
+ G
. Text input will appear.:line_number
. For example :200000
ENTER
to set cursor on this lineEdit
> Mark
> Select to Mark
. Large selection will appear.DELETE
Upvotes: 4