Sublime Forum

Deleting code from line to line

#1

I want to select the code from line 300 to line 44000 to be deleted, how I can do that?

0 Likes

#2
  • ctrl+g goto line 300
  • set mark cmd+k cmd+space
  • ctrl+g goto line 44000
  • select to mark cmd+k cmd+a
  • hit delete/backspace
0 Likes

#3

when i press ctrl+g a box shows up, do I need to enter something there? and when I go to line 300 do I need to put my mouse on the line?

0 Likes

#4

Nothing happens, I’m doing the steps right, but really nothing happens.

0 Likes

#5

I realize this is an old post but recently I needed to do exactly what the OP posted, and the above did not work. It manually took a long time to remove the content

0 Likes

#6

Proposed solution still works in ST4200.

Note it using MacOS specific key bindings.

On Linux/Windows ctrl modifier is used to set a mark and select text to mark.

  • ctrl+g goto line 300
  • set mark ctrl+k ctrl+space
  • ctrl+g goto line 44000
  • delete to mark ctrl+k ctrl+w

Otherwise a plugin is possibly overriding default key bindings.

1 Like