Write your commits with VSCode

Dany Paredes - Sep 30 '20 - - Dev Community

If you use vscode for commits, the screen area is a bit small.

Add these line in .gitconfig to configure for use vscode for write commits.

[core]
    editor = code --wait
[difftool "vscode"]
    cmd = code --wait --diff $LOCAL $REMOTE
Enter fullscreen mode Exit fullscreen mode

Save .gitconfig and in vscode type git commit it will open an empty file to write the commit message.

Alt Text

When closing the file, it is used as a commit message.

Photo by Aaron Burden on Unsplash

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .