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

6

40

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

Mook answered 28/6, 2012 at 4:0 Comment(0)
P
61

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.

Parry answered 28/6, 2012 at 4:4 Comment(1)
For me pressing Insert key was not doing anything, so I restarted my Eclipse and it automatically solved this problem!Pusan
Z
26

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.

Zebada answered 28/6, 2012 at 4:18 Comment(0)
J
12

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

Juta answered 9/11, 2015 at 18:42 Comment(0)
A
5

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.

Avernus answered 14/11, 2018 at 19:59 Comment(0)
A
1

In my case, it's related to the Toggle Vrapper Icon in the Eclipse.

If you are getting the bold black cursor, then the icon must be enabled. So, click on the Toggle Vrapper Icon to disable. It's located in the Eclipse's Toolbar. Please see the attached image for the clarity.

enter image description here

Airtight answered 28/3, 2019 at 18:33 Comment(0)
J
1

This issue can happen not only in but also in any of the .

On systems, 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.

Jecon answered 17/8, 2020 at 14:12 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.