loading...

VS Code shell variables and git

github logo ・1 min read

I use zshell so in order to persist my choice I edit ~/.zprofile:

export EDITOR="code --new-window"

When commiting from the command line (git commit) we have to make the editor wait for us to finish the commit message and therefore we need to instruct git use the --wait option too:

$ git config --global core.editor "code --wait --new-window"

This way the commit message will be taken by git right after we issue a save command.

🎩

twitter logo DISCUSS
Classic DEV Post from Jun 2 '19

Stay Healthy as a Developer

olistik profile image
OMG it's full of patterns.

Hey there reader...

Do you prefer sans serif over serif?

You can change your font preferences in the "misc" section of your settings. ❤️