Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse text cursor has changed and editor behaves differently

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.

like image 435
Jeremy Avatar asked Mar 05 '12 11:03

Jeremy


People also ask

How do I get 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 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 text editor in Eclipse?

You can set which Eclipse editor or external program to use to open a specific type of file based on its file extension. Just select Window→ Preferences→ Workbench→ File Associations, select the file type, and associate an editor or program with it (if nothing else, you can use Eclipse's default text editor).


1 Answers

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

like image 94
mikej Avatar answered Oct 09 '22 07:10

mikej