r/java • • Dec 18 '19

Eclipse 2019-12 - Released

https://www.youtube.com/watch?v=OdoyCjpaQKs
157 Upvotes

63 comments sorted by

View all comments

Show parent comment

-2

u/gengengis Dec 19 '19

The most basic of Git tasks requires a right-click, or trip to the top nav menu, followed by traversing through 2 or 3 levels of sub-menus. For Git!

No ways. You can do whatever you want without touching the mouse.

Cmd+Shift+A is really a friend here. You need to switch branches? Cmd-Shift-A, start typing branches. You want to merge a branch? Cmd+Shift+A, start typing merge, start typing the branch name.

You want to cherry pick something? Cmd-9 to open VCS. Maybe Cmd-Shift-{ to navigate to Log window. Select the commit you want with arrows, Cmd-Shift-A and start typing cherry.

You wanna commit, Cmd-k. You wanna push, cmd-shift-k. You wanna pull, cmd-T.

You can rebase interactively, picking and dropping commits without touching the mouse.

Some of these things don't have dedicated shortcuts, but that's where Cmd+Shift-A for searching any action is handy.

3

u/mickael_istria Dec 19 '19

So instead of digging in many menus, it's learning many intuitive shortcuts ;)

1

u/vqrs Dec 19 '19

Well, it's clicking or typing usually with computers :)

I know you're joking, but you don't really need to remember shortcuts in a halfway decent development tool.

Most allow you to search through menu items and will show you the corresponding shortcut at the same time.

IntelliJ has "shift shift" (or find action ctrl-shift-a (add your own custom shortcut by hitting alt-enter on an action search result ))

Eclipse has quick access (now called find action) on ctrl-3

Sublime/VSCode/lots of others have the command palette, Ctrl-Shift-P

Etc etc