Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Keyboard shortcut to submit code commit in xcode4?

In Xcode 4, the keyboard command to commit code is cmd+alt+c. That takes you to a comparison/comment screen.

Now, when you're done typing the comment, how do you accept the commit with the keyboard? The comment field has focus, and tabbing out of it doesn't work. Return + any combination of modifier keys also don't work, as doesn't cmd+s.

Do I really have to use the mouse to commit the commit, or is there a keyboard shortcut I just can't find?

like image 281
fzwo Avatar asked Jul 02 '11 10:07

fzwo


3 Answers

Command+Enter (on the numeric keypad) works for me.

(Command-Return doesn't, so if you're on a keyboard without a numeric keypad, it may require some uncomfortable finger gymnastics…)

like image 164
John Y Avatar answered Nov 04 '22 02:11

John Y


If you have a numeric keyboard use Cmd+Enter as John Yeates said.

On a notebook keyboard you can use Cmd+Fn+Return to commit.

like image 26
malte Avatar answered Nov 04 '22 01:11

malte


For keyboards without numeric keypads, Function+Command+Return does the trick.

(fn+Return) == Enter

like image 26
matterker Avatar answered Nov 04 '22 01:11

matterker