Sharikov Vladislav
Sharikov Vladislav

Reputation: 7279

Is there any command to open list of branches in VS Code?

There is a command git.branch in VS Code keyboards shortcuts. This command opens dialog to create new branch.

I can not find the command to open list of all branches. Is there any command for it?

Upvotes: 20

Views: 14426

Answers (3)

Zain Ali
Zain Ali

Reputation: 66

enter image description here

You need to set this shortcut in VS code.

Upvotes: 1

Alireza Hadjar
Alireza Hadjar

Reputation: 468

You can also import you keybindings from webstorm by doing following way: Code > Prefrences > Migrate shortcuts from ... and then install IntelliJ IDEA keybindings from Keisuke Kato

Upvotes: -1

Wosi
Wosi

Reputation: 45333

Yes, there is the git: Checkout to... command. It displays the picker including all known branches. You can execute this command also by clicking on the current branch name displayed on the statusbar's left side.

Look for the command git.checkout in case you want to create a keybinding for it. If you add the following code to your keybindings.json then you will trigger the command by typing SHIFT+ALT+G:

{
    "key": "shift+alt+g",
    "command": "git.checkout"
}

Upvotes: 33

Related Questions