'How to move the cursor into empty space? Virtual space?

I use Microsoft visual studio code. I am moving the cursor by pressing the arrow keys, but when I try to move it down at the end of a line, it moves to the beginning of the next line.

What I want is for the cursor to move to the same position on the next line.

Is there any way to achieve this?



Solution 1:[1]

Since vscode does not support the concept of "virtual spaces" there is no built-in way to do it. I found one extension that does do it though:

fake-virtual-space

There are some limitations but it does do what you want. In the demo below I am only using the up and down arrow keys to move the cursor to a new, previously empty, line.

demo of fake virtual space being added by cursor movement

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Mark