I am using R-studio 3.3.3 on a 64 bit windows 10 Acer laptop. I am new to programming in R and I just discovered that my cursor sometimes changes from a vertical line to an underscore in R-studio. Could someone help tell me why?
8 Answers
Press the Insert button on your keyboard.

- 8,598
- 83
- 57
- 92

- 1,173
- 8
- 14
-
1Some keyboards don't have the Insert button, so for me for example, I needed to press fn+E – YellowStrawHatter Aug 24 '22 at 13:20
This is a very common operation in different software and platforms. The underscore means that you are in Overwrite mode, meaning that anything you type will overwrite the text at the cursor position.
The "normal" cursor indicates that you are in insert mode and all text you type will force the rest of the line to move further.
Switching between these modes happens by pressing the Insert key on your keyboard (usually there are two of them, one somewhere above of the arrow keys and another on the Num Pad).

- 8,598
- 83
- 57
- 92

- 396
- 3
- 6
press ins button or fn+ins to solve this problem underscore cursor means you are on overwrite mode

- 1,127
- 1
- 12
- 25
Right click and select Reload.

- 31
- 1
-
This is useful if you work on a remote computer, especially while working between different platforms (like mac and windows, like in my case) and the shortcuts don't work. – Ursulka Siete Jan 31 '22 at 08:00
This can happen when trying to press the Delete key - the Insert key is to left side of Delete.
Press Insert again to correct this.

- 8,598
- 83
- 57
- 92

- 806
- 6
- 10
I was able to solve the issue by simply clicking 'insert' keyboard key. The cursor in RStudio changed from underscore to vertical.

- 11
- 2
For those using HP laptops: the only solution will be to turn on your numeric key num
which is below the home
key at the top right corner of your keypad/keyboard; on the same key, you'll see the inscription "lock". Then hit alt
key on the left of the long spacebar
on your keypad/keyboard. Then hold it together with the 0
key on the bottom right side of the keypad/keyboard with the inscription ins
which is the same as the insert
key. You should be able to get back the vertical cursor line. Hope this works for someone.

- 109
- 2