Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Bold black cursor in Eclipse deletes code, and I don't know how to get rid of it

When I edit code in the middle of statements, it replaces the current code around it. I cannot find a way to replace this with a normal cursor that only inserts data instead of replacing it. Is that functionality possible in Eclipse?

Look at the black cursor to the right of the 3rd statement

like image 561
Enigmatic Wang Avatar asked Jun 28 '12 04:06

Enigmatic Wang


People also ask

How do I change my cursor back to normal in eclipse?

You can change the mode by hitting the insert key. The mode is also indicated in the lower right of the editor status line.

How do I get rid of the thick blinking cursor?

In the bottom right corner of the settings menu select Change PC Settings. In the PC Settings Menu select Ease of Access. In the Ease of Access Menu select Other Options. At the bottom of the page in the Visual Options section see the Cursor Thickness Slider and slide it all the way to the left.

How do I get my normal cursor back?

Step 1: In the Windows search box, search for "ease of access" and select Ease of access mouse settings from the resulting list. Step 2: In the left-side menu, select Mouse pointer. Step 3: Under Change pointer size, you can adjust the bar to a size that works best for you.

How do I change the cursor in eclipse?

Try pressing Alt + Shift + A .


5 Answers

The problem is also identified in your status bar at the bottom:

overwrite label in status bar

You are in overwrite mode instead of insert mode.

The “Insert” key toggles between insert and overwrite modes.

like image 53
rob mayoff Avatar answered Oct 03 '22 04:10

rob mayoff


It sounds like you hit the "Insert" key .. in most applications this results in a fat (solid rectangle) cursor being displayed, as your screenshot suggests. This indicates that you are in overwrite mode rather than the default insert mode.

Just hit the "insert" key on your keyboard once more... it's usually near the 'delete' (not backspace), scroll lock and 'Print Screen' (often above the cursor keys in a full size keyboard.) This will switch back to insert mode and turn your cursor into a vertical line rather than a rectangle.

like image 35
Loopo Avatar answered Oct 03 '22 03:10

Loopo


You might have pressed 0 (also used for insert, shortcut INS) key, which is on the right side of your right scroll button. To solve the problem, just press it again or double click on 'overwrite'.

like image 44
Rafiullah Qallander Avatar answered Oct 03 '22 03:10

Rafiullah Qallander


This problem, in my case, wasn't related to the Insert key. It was related to Vrapper being enabled and editing like Vim, without my knowledge.

I just toggled the Vrapper Icon in Eclipse top bar of menus and then pressed the Insert Key and the problem was solved.

Hopefully this answer will help someone in the future.

like image 21
Qnoobish Avatar answered Oct 03 '22 04:10

Qnoobish


This issue can happen not only in eclipse but also in any of the text-editor.

On windows systems, windows-10 in my case, this issue arose when the shift and insert key was pressed in tandem unintentionally which takes the user to the overwrite mode.

To get back to insert mode you need to press shift and insert in tandem again.

like image 42
undetected Selenium Avatar answered Oct 03 '22 03:10

undetected Selenium