Eclipse jumping to function name on Ctrl-S

不打扰是莪最后的温柔 提交于 2021-01-27 13:40:45

问题


When I press Ctrl-S to save my Java file in Eclipse it's jumping to the function name. This is very annoying. Someone know what to do about this?


回答1:


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.




回答2:


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?




回答3:


This was really annoying problem for me also.

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




回答4:


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.



来源:https://stackoverflow.com/questions/2131509/eclipse-jumping-to-function-name-on-ctrl-s

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!