34

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?

Shankar
  • 2,890
  • 3
  • 25
  • 40
Samuel Nde
  • 2,565
  • 2
  • 23
  • 23

8 Answers8

86

Press the Insert button on your keyboard.

Wai Ha Lee
  • 8,598
  • 83
  • 57
  • 92
Jay Zamsol
  • 1,173
  • 8
  • 14
29

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).

Wai Ha Lee
  • 8,598
  • 83
  • 57
  • 92
Captain Stone
  • 396
  • 3
  • 6
4

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

Abhi
  • 1,127
  • 1
  • 12
  • 25
3

Right click and select Reload.

  • 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
2

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.

Wai Ha Lee
  • 8,598
  • 83
  • 57
  • 92
Ritik Kamboj
  • 806
  • 6
  • 10
1

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

N Acharya
  • 11
  • 2
0

shift + insert at a same time from keyboard

0

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.

holala
  • 109
  • 2