0

In Vscode, there are (at least) two ways to update a local repository from a remote one : running git pull in a terminal or clicking on the turning arrow on the bottom left of the screen.

If I use the button, all is well updated, but I have no feedback of the files that were updated, while in the terminal this list is displayed in the log.

Actually, the log of the button is available in the Output > Git tab, which leads me to my question : is there a way to set VSCode such that this tab is automatically open when I click on the update button ?

4
  • 1
    create a runCommands key binding that opens the log and executes the pull command Commented Jul 28, 2023 at 8:37
  • I looked at how to do this, but I only found key bindings from a combination of key on the keyboard. What did you have in mind with the runCommands key bindings ? Thanks Commented Jul 31, 2023 at 12:16
  • runCommands is the command you bind to a key combo and you add a list of commands to execute, you need VSC >1.76 Commented Jul 31, 2023 at 12:52
  • or use the extension multi-command Commented Jul 31, 2023 at 12:52

1 Answer 1

0

That is a little tricky and may be improved, but that does the job : from the answer proposed in the comments above, I added a key shortcut to the action Git: Pull (Crtl + Shift + Up), and another short cut with similar keys (Crtl + Shift + !) to Git: Show Git Output (putting twice the same shortcut does not cumulate the actions.

Now if I type Crtl + Shift + Up + ! the modifications from remote are pulled, and the output is shown !

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.