92

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.

7
  • 2
    "the character above forward slash" is a question mark on my keyboard... can you be more specific?
    – DNA
    Mar 5, 2012 at 11:42
  • pretty sure the question mark is above the back slash. I thought that the direction of the slash is based on starting at the top and going to the bottom... If I'm mistaken then obviously I mean the backslash.
    – Jeremy
    Mar 5, 2012 at 11:45
  • 1
    What does "fugoogin" mean? What does it mean when Eclipse acts like MS Word?
    – Gabe
    Mar 5, 2012 at 11:52
  • 1
    That was a very well-posed question.
    – Leo
    Mar 1, 2013 at 21:47
  • 8
    Funny how you describe it as "the character above backslash (a thin vertical bar with a gap in the middle.)" instead of just typing ¦ Dec 28, 2013 at 17:10

11 Answers 11

179

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

11
  • 6
    Thank god, this split caret would have made me crazy!
    – STM
    Apr 10, 2012 at 8:42
  • 3
    @STM: It's funny how an apparently negligible cosmetic change to the cursor can drive us up the wall! Ctrl+Shift+Insert fixed it, though!
    – WeNeigh
    Dec 20, 2012 at 19:42
  • 3
    Ahhh, brilliant. I don't even know how I turned it on (how the hell do you accidentally press Ctrl + Shift + Insert?), but you saved me!
    – Davor
    Jul 10, 2013 at 21:33
  • 1
    I think it went from smart insert to normal insert when I changed the file extension to an unknown one, thanks, it was driving me insane! Also, it tells you which more you are in on the bottom bar :)
    – Liam W
    Feb 8, 2014 at 17:51
  • 1
    Still saving me seven years later.
    – K. Morgan
    Sep 30, 2019 at 18:33
19

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.

2
  • Incorrect, Insert would make it behave like Command prompt, not Microsoft word. Also insert makes the cursor a block and not a split cursor, as you said. I have a vertical line with a gap in the middle of it, like the character above the forward slash...
    – Jeremy
    Mar 5, 2012 at 11:52
  • @Jeremy it would help if you explained what you mean by "acting like Microsoft Word" then...and "split cursor"...
    – DNA
    Mar 5, 2012 at 11:57
8

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

For reference, I am adding image.

Ecliple - Status Bar

1
  • 1
    This merely does what the [Insert] key does, i.e. toggles Overwrite and whatever Insert mode is enabled. It does not toggle between Insert and Smart Insert modes, which is what the OP asks for.
    – ysap
    Oct 27, 2017 at 7:35
4

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

4

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

0
2

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.

1
  • This is the same as the <Insert> key but doesn't solve the question.
    – Roman
    Mar 3, 2022 at 6:40
1

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

1

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.

0

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

0

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

0

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.