In this page
What is Visual Studio Code?
Visual Studio Code (also known as VS Code) is a free, open-source code editor by Microsoft with built-in Git support via the Source Control panel. It runs on Windows, macOS, and Linux.
Visual Studio Code guide
Learn how to get the most out of Better Commit Policy in Visual Studio Code. If this is your Git client of choice, this guide is well worth a read.
Local check
The local check is implemented as a standard Git hook that runs at commit time.
When you submit a commit from the Source Control panel, the hook automatically executes. If the local check rejects the commit, a modal dialog appears with a short error message:
Clicking Open Git Log opens the full hook output as a virtual document tab in the editor, showing the list of violations:
Of course, your changes remain staged, so you can easily fix the commit and retry.
Git configuration settings
The local check feature is configured through standard Git configuration settings.
Visual Studio Code does not offer a built-in feature to modify Git configuration settings. You can open a terminal instead (View → Terminal) and run git config commands.
Questions?
Ask us any time.