Hopefully this is a quickie: I've been doing a lot of Java/Google Web Toolkit work in Eclipse lately and while I've liked it so far I've had one reoccurring issue that is starting to drive me batty. It seems pretty random, but frequent enough to be annoying: If I am doing a lot of copy/pasting I will suddenly find myself being whisked away to a function or variable definition by the IDE, often in a completely different file, at which point I usually end up accidentally copying over code I didn't intend to and needing to undo and reposition myself back to where I wanted. I'm pretty certain that it's a "jump to definition" shortcut that I keep hitting by accident, but I'm not certain what the shortcut is, what exactly triggers it, and most importantly how to turn it off!
Typically when this happens I am going through the following motions:
The definition that I am sent to is not always the double-clicked word, but may be the last word that the cursor was on before the double click. My biggest issue is that I'm usually working fast enough that I don't catch exactly what actions just triggered the behavior.
I would really like to just kill off whatever is doing this (If I want to jump to definition I'll the context menu). Any hints as to how?
Using:
If you press Ctrl and click on a token in your code (like a variable or method name), Eclipse will take you to the token's definition.
I think you might be double-clicking and pressing Ctrl + C / Ctrl + V too fast.
To turn if off:
Window -> Preferences -> General -> Editor -> Text Editors -> Hyperlinking
Uncheck the box.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With