Eclipse text cursor has changed and editor behaves differently

JavaEclipseEditor

Java Problem Overview


I pushed a magic button and now my cursor (the blinking thing that shows where you type) split itself and now Eclipse is acting like a plain text editor/like Microsoft Word. The cursor, which usually looks like "|", now looks like "¦" (what Wikipedia calls a 'broken bar' or a 'parted rule' rather than a normal 'vertical bar').

I just want to know how to get Eclipse to act normal again, and what I accidentally did so I don't do it again.

Java Solutions


Solution 1 - Java

It sounds like you have accidentally switched from Smart Insert mode to Insert mode.

Press Ctrl + Shift + Insert or tick Smart Insert Mode on the Edit menu to switch back.

Smart Insert is the feature that automatically insert closing quotes and brackets when you type the opener and places semi-colons at the end of the line when you press semi-colon (if you have the preference for that enabled.)

Solution 2 - Java

Maybe you pressed the insert key, which will change the Eclipse editor to Overwrite rather than Smart Insert (see the info bar at the bottom of the editor), and will change the cursor to a block rather than a vertical line?

Update: Thanks for clarification - see mikej's answer which is correct. I'll leave this answer in case anyone has the similar, related problem that I describe.

Solution 3 - Java

Just double click on "Smart Insert" / "Overwrite" in eclipse status bar

For reference, I am adding image.

Ecliple - Status Bar

Solution 4 - Java

If nothing works, restart eclipse. That is what I did !

Solution 5 - Java

Just click

> Toggle Vrapper Icon in Toolbar..

That may causes some issues like these. Because I'm also faced the same issue until today.

Please refer the below images to get clear idea about this.


Toggle Vrapper Icon

Make sure that it is in disable mode in status bar
Status bar Confirmation

Solution 6 - Java

On my windows computer I press Shift + 0 but the zero has to be on the numeric keypad not the top row numbers.

Shift + 0 toggle my cursor.

Solution 7 - Java

@Jeremy by saying " I have a vertical line with a gap in the middle of it, like the character above the forward slash " i guess you are referring to the ' Pipeline 'symbol, the one you use to denote' OR ' in programming languages. As people already answered, you are in Raw Insert Mode (as opposed to Smart Mode) so try Edit->Smart Insert Mode (Ctrl+Shift+Insert by default). For more info you can visit this thread http://www.eclipse.org/forums/index.php/t/53833/

And remember, the symbol is called 'Pipe' symbol or 'Pipeline' symbol.

Solution 8 - Java

I also had same problem, you can fix this by pressing just INSERT button on keyboard (on windows platform) also.

It worked for me.

or you can restart your eclipse.

Solution 9 - Java

I've encountered this symptom in Eclipse 3.7 before. And after I restarted machine, it disappeared.

Solution 10 - Java

If your cursor symbol is " + " then press Alt+Shift+A. or else we can use Edit menu options ==> Toggle Block Selections

Solution 11 - Java

If you are using spring tool suite then you can double click on highlighted Smart Insert . Some keyboards do not have insert button.

enter image description here

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionJeremyView Question on Stackoverflow
Solution 1 - JavamikejView Answer on Stackoverflow
Solution 2 - JavaDNAView Answer on Stackoverflow
Solution 3 - Javapradip garalaView Answer on Stackoverflow
Solution 4 - JavaraghavView Answer on Stackoverflow
Solution 5 - JavaNachan CView Answer on Stackoverflow
Solution 6 - JavaPA-GWView Answer on Stackoverflow
Solution 7 - JavaNANDAGOPALView Answer on Stackoverflow
Solution 8 - JavaMakarand.ThoratView Answer on Stackoverflow
Solution 9 - Javabnguyen82View Answer on Stackoverflow
Solution 10 - JavaRavindraView Answer on Stackoverflow
Solution 11 - JavaMonishGhutkeView Answer on Stackoverflow