Does Eclipse support keyboard shortcuts known from Visual Studio?

Firstly, I know that you can install the Visual Studio keyboard layout in Eclipse after installing the CDT plugin, but unfortunately, the most useful keys work only with C / C ++ sources, not Java.

I am trying to customize a Java editor, but I cannot find some of the most useful shortcuts ...

Go to ad (VS: Ctrl + F12 ) / go to definition ... (VS: F12 ) / go back ( Ctrl + Num * )
Quick identifier when searching for a cursor (VS: Ctrl + F3 )
Autoformat code (VS: Alt + F8 )
Quick installation of anonymous bookmarks (VS: Ctrl + F2 ) / Go to the next bookmark (VS: F2 )

Perhaps still to come :)

+4
source share
3 answers

From http://www.eclipsezone.com/eclipse/forums/t76435.rhtml

"... you can display a list of all the hotkeys in Eclipse using Ctrl + Shift + L.

... You can configure hotkeys in Eclipse through Window-> Preferences ...-> General-> Keys. "

Edit: Some of the ones you are looking for include:

  • Format = Ctrl + Shft + F
  • Open ad = F3
  • Last edited location = Ctrl + Q
  • Go back = Alt + Left
  • Next annotation (bookmark) = Ctrl + .
  • Previous annotation (bookmark) = Ctrl + ,

You can set a hotkey for a new bookmark in the key menu.

Annotations can include bookmarks if you check them in the drop-down menu.

Hope this helps a bit.

+3
source

The best approach to Visual Studio bookmarks ( CTRL + K CTRL + K = set, CTRL + K CTRL + N = next, CTRL + K CTRL + P = previous), which I found:

  • Set a keyboard shortcut to add a bookmark. Window -> Preferences -> General -> Keys . (I used CTRL + K out of habit.) See also blog post . Unfortunately, I see no way to have anonymous shortcuts, you must enter a name. (Editing: after use, I find that the named bookmarks are quite useful than the anonymous ones, and the current selected word will be automatically used for the bookmark name, so you need to type a little text.)
  • As Andres said, select Bookmarks from the drop-down menu of the "Next annotation" button on the toolbar.
  • Now you can use CTRL + , and CTRL + . to move between bookmarks.
+2
source

Go to:
Window โ†’ Settings โ†’ General โ†’ Keys โ†’ Scheme (dropdown) โ†’ Microsoft Visual Studio

You get almost all Visual Studio shortcuts in the silver sky.

0
source

Source: https://habr.com/ru/post/1299027/


All Articles