Search code examples
pycharm

PyCharm: How to make commit+push the default?


I am very lazy and I would like to always push my commit immediately.

Is there a way to make commit+push the default? I would like to use as little keystrokes as possible.


Solution

  • I think this is the answer to your question (based on PhpStorm):

    https://intellij-support.jetbrains.com/hc/en-us/community/posts/360002172100-Set-Commit-and-Push-as-default-button

    Unfortunately, there is no option to change the default behavior for the button.

    However, you may want to disable buttons grouping via "Settings - Appearance & Behavior - Appearance | Window options -> Allow merging buttons on dialogs."

    In this case, you will have a separate button for "Commit and Push".

    As an option, you could use a keyboard shortcut (Ctrl+Alt+K on Windows).

    on MacOS the keyboard shortcut is Shift+Command+K (symbols: ⇧ + ⌘ + K, see this page for an explanation about MacOS shortcut commands).

    I hope this can help (PyCharm Professional 2019.3).

    PyCharm Professional 2019.3, settings


    Some news...

    Starting 2020.3 Commit and Commit & Push buttons are both visible now

    https://intellij-support.jetbrains.com/hc/en-us/community/posts/360002172100/comments/360002372420

    PyCharm 2020.3