简体   繁体   中英

Is there a hotkey in Android Studio's commit dialog to show changes without touching the mouse?

I commit often in Android Studio and I always check the changes first. I can press Ctrl-K to open the commit dialog and there I should be able to use F7 to go through the changes.

The problem is by default the commit message editor is selected and there F7 does not work for some reason.

Is there a hotkey to focus the changes pane, so F7 works? I can do it with the mouse, but I commit frequently, so I'd like to do all these from the keyboard without using the mouse.

The direct answer is no.

In commit changes window, it focus on commit Message by default, and it can not be changed. So hotkey can not be used since no files is focused in the commit changes window.

The work around is view diff of the un-committed files before opening the commit changes window :

First add two keyboard shortcuts in keymap:

Such as Alt + A for compare with Same Repository Verison, and Alt + D for Show Local Changes.

在此处输入图片说明 在此处输入图片说明

Before commit changes, you can check the local changes by Alt + D , and check the diff of a file by Alt + A .

在此处输入图片说明

After view the diff the the un-committed files, then you can open commit changes window to commit directly.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM