3

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?

Alex
  • 1,574
  • 17
  • 36
Hidayat
  • 995
  • 2
  • 7
  • 7

4 Answers4

3

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
  • 7,280
  • 4
  • 35
  • 43
1

This was really annoying problem for me also.

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

AAverin
  • 3,014
  • 3
  • 27
  • 32
1

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
  • 27,756
  • 10
  • 52
  • 74
0

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.

Community
  • 1
  • 1
Gordon
  • 4,823
  • 4
  • 38
  • 55