简体   繁体   中英

Eclipse Java IDE, Inserting a semi colon gets placed after the cursor. How do I fix it?

Right now when I insert a semi colon after something like:

Scanner(System.in);, it puts my cursor in-between the colon and the end parenthesis like this:

Scanner(System.in)|;

How do I get it to put my cursor here:

Scanner(System.in);|

I tried looking at this help link but it's out of date and the ones that do work don't work. Eclipse semicolon inserted before cursor when typing full line not using content assist

Under Window --> Preferences --> Java --> Editor --> Content Assist; inside the box "Auto Activation", I unchecked "Enable auto activation." That fixed it.

Try This. Go to window - > Preferences - > Restore Defaults

I just solved the problem(it was driving me crazy!)

Preferences > Java > Editor > Content Assist: set the delay to 200 or more,then the cursor will act like the way you wanted.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM