Home > OS >  How to place a cursor after every N characters in VS Code?
How to place a cursor after every N characters in VS Code?

Time:04-14

Say for example I have a very long line of text in a single line in VS Code (let's pretend that the example given below is very long).

0xffffffffeeeeeeee02020202aaaaaaaa

At first I placed my cursor after the characters 0x. (the cursor is denoted by the | character in the example below)

0x|ffffffffeeeeeeee02020202aaaaaaaa

Then I want to add more cursors after every N characters from the current cursor. In this case N is equal to 8 and I want to do this twice to add two more cursor like in the example below.

0x|ffffffff|eeeeeeee|02020202aaaaaaaa

So that after I press the following sequence of keys in the keyboard, in this case those sequence of keys are ,(space)0x I should be able to get these final result.

0x, 0x|ffffffff, 0x|eeeeeeee, 0x|02020202aaaaaaaa

After I deselect the cursors I should be getting this

0x, 0xffffffff, 0xeeeeeeee, 0x02020202aaaaaaaa

Is this possible to do in VS code?

CodePudding user response:

You can use the extension Put a cursor every eighth character

  • Related