Fetch your next commit message from WhatTheCommit.com directly into the VS Code Git commit input box. Works in both VS Code Desktop and VS Code for the Web (vscode.dev and github.dev).
All credits for the commit messages go to ngerakines/commitment.
Install from the Visual Studio Marketplace.
- Open a folder containing a Git repository.
- Click the WhatTheCommit icon in the Source Control title bar, or run
WhatTheCommit: Get Commit Messagefrom the Command Palette. - The fetched commit message fills the Git commit input box.
| Setting | Type | Default | Description |
|---|---|---|---|
wtc.addPermalink |
boolean |
false |
Append the WhatTheCommit permalink below the commit message. |
- VS Code 1.96.0 or newer
- Built-in VS Code Git extension (
vscode.git) enabled
npm install
npm run compileAvailable scripts:
npm run check-typesruns TypeScript type checking (tsc --noEmit).npm run lintruns ESLint.npm testruns the ESLint rule tests.npm run compiletype checks, lints, and builds desktop and web bundles with esbuild.npm run watchrebuilds desktop and web bundles on file changes.npm run packagebuilds a.vsixpackage withvsce.npm run run-in-browserlaunches the extension in VS Code for the Web using Chromium.
The ESLint check requires engines.vscode and devDependencies["@types/vscode"]
in package.json to match. Install the VS Code ESLint extension to see this error
while editing the file. Update both values together when raising the minimum VS Code version.
