开发者

Eclipse jumping to function name on Ctrl-S

When I press Ctrl-S to save my Java file in Eclipse it's ju开发者_如何学运维mping to the function name. This is very annoying. Someone know what to do about this?


Go to Window->Preferences->General->Keys (you can also search for Keys in the main Preferences window). You most likely have added a binding which makes eclipse jump to the function name when you press ctrl+s.

Another place to look is Window->Preferences->Java->Code Style->Clean Up and Window->Preferences->Java->Editor->Save Actions. That is where all actions are defined which happen when you save/clean up a document.


Try looking at your keyboard bindings. I certainly don't have this problem on either of my Eclipse installs. You might have Ctrl-S assigned to two different actions?


This was really annoying problem for me also.

Solved it by going to Preferences->General->Workspace and unchecking "Refresh on access" checkbox.


I had a similar problem with Ctrl+C malfunctioning in Eclipse.

Here is a similar question regarding it.

Maybe try upgrading to the latest version if the above solutions do not work.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜