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?
Asked
Active
Viewed 1,487 times
3
-
What OS and version of Eclipse are you using? – Paul Wagland Jan 25 '10 at 10:42
-
I have exactly the same and none of the solutions below help. (It jumps to function "setup" and highlight all words "setup" (as if a search was done for setup). – e-motiv Aug 30 '15 at 21:11
4 Answers
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