Sublime Forum

[Solved]How column select all lines at the caret in a particular column?

#1

Example:

#         ↓       👈current caret here; location is "Line1, Column11"
E:/aaa/bbb /1.txt
E:/aaa/bbb /2.txt
E:/aaa/bbb /3.txt

Expect:

#         ↓       👈👈👈  expand to all rows
E:/aaa/bbb │/1.txt
E:/aaa/bbb │/2.txt
E:/aaa/bbb │/3.txt
...        │
E:/aaa/bbb │/n.txt

So the goal is:

  • Column Select the “11th column” of “all rows”

:droplet::droplet::droplet:But there are a specific requirement: “Using only the keyboard and no arrow keys”

That is to say: hope there can be a key like ‘Ctrl+A’ to “Column Select :stop_sign:current column of all rows”

  • I often use this shortcut to column select all: {Ctrl_A + Ctrl_Shift_L}
  • But this does not work for :droplet:a specific column (or current column)

Does Sublime have this built-in feature?

if not:

  • is there plugin to achieve this?
  • or
  • Is it possible that all carets jump to a specific column when Columns Selecting?
0 Likes

#2

Column Select provides ctrl+alt+end key binding to exactly that.

Note that, it wouldn’t add virtual spaces to lines which are not long enough.

2 Likes

#3

TTTTTTTTThank you very much!!! this is what I want .
I’m writing a bulk rename files script, with the plugin, I can save a lot of tedious steps.

0 Likes

#4

The following enhancement request was issued to ask for addition to ST’s core functionality.

0 Likes