Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Multiline cursor index in VSCode

In Visual Studio Code, is it possible to access the current cursor number when using multiline cursors?

For example turn this

[
  { name: 'u█' },
  { name: 'u█' },
  { name: 'u█' },
  { name: 'u█' },
  { name: 'u█' },
  { name: 'u█' }
]

Into this

[
  { name: 'u0' },
  { name: 'u1' },
  { name: 'u2' },
  { name: 'u3' },
  { name: 'u4' },
  { name: 'u5' }
]

(█ representes a cursor)

like image 697
Manu Avatar asked Mar 09 '23 18:03

Manu


1 Answers

Just if someone come across this; the extension is called: Text Pastry (by jkjustjoshing)

like image 158
Manu Avatar answered Mar 12 '23 06:03

Manu