Reputation: 235
First, I know it is possible to setup Visual Studio keyboard scheme in Eclipse after installing CDT plugin, but unfortunately most useful keys only work with C/C++ sources, not with Java.
I'm trying to configure Java editor but I'm unable to find some of most useful shortcuts...
Go to declaration (VS: Ctrl+F12) / go to definition... (VS: F12) / Go back (Ctrl+Num*)
Quick identifier under cursor search (VS: Ctrl+F3)
Code autoformat (VS: Alt+F8)
Quickly set anonymous bookmark (VS: Ctrl+F2) / Go to next bookmark (VS: F2)
Probably more to come :)
Upvotes: 4
Views: 2207
Reputation: 2627
Go to:
Window -> Preferences -> General -> Keys -> Scheme (dropdown) -> Microsoft Visual Studio
You get almost all Visual Studio shortcuts on a silver palate.
Upvotes: 0
Reputation: 2959
The best approximation to Visual Studio's bookmarks (CTRL+K CTRL+K = set, CTRL+K CTRL+N = next, CTRL+K CTRL+P = previous) that I've found is:
Window -> Preferences -> General -> Keys
. (I used CTRL+K from habit.) See also this blog post. Unfortunately I don't see any way to have anonymous shortcuts, you must type a name. (Edit: After using it for a while I find named bookmarks are quite a bit more useful than anonymous, and the currently selected word will be automatically used for the bookmark name so little typing is necessary.)Bookmarks
in the drop-down menu of your Next Annotation button on the toolbar.Upvotes: 2
Reputation: 5187
From http://www.eclipsezone.com/eclipse/forums/t76435.rhtml
"... you can display a list of all the hotkeys in Eclipse using Ctrl+Shift+L .
... It's possible to customize the hotkeys in Eclipse through Window->Preferences...->General->Keys. "
Edit: Some of the ones you are looking for include:
You can set a hotkey for new bookmark in the keys menu.
Annotations can include bookmarks if you check them on the drop down menu.
Hopefully that helps a little.
Upvotes: 3