tags:

views:

86

answers:

3

When I press ctrl-s to save my java file in Eclipse its jumping to the function name, this is very annoying. Someone know what to do about this?

+1  A: 

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?

Paul Wagland
+4  A: 

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.

laura
A: 

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.

Gordon