GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - bendera/vscode-commit-message-editor: Edit commit messages in a convenient way.

BranchesTags
Open more actions menu

Latest commit

 

History

577 Commits
577 Commits

Folders and files

NameName
Last commit message
Last commit date
.github-actions/vsce
.github-actions/vsce
 
 
.github/workflows
.github/workflows
 
 
.vscode
.vscode
 
 
docs
docs
 
 
example-configs
example-configs
 
 
frontend
frontend
 
 
scripts
scripts
 
 
src
src
 
 
test
test
 
 
.editorconfig
.editorconfig
 
 
.gitignore
.gitignore
 
 
.prettierrc
.prettierrc
 
 
.vscodeignore
.vscodeignore
 
 
CHANGELOG.md
CHANGELOG.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
icon.png
icon.png
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 
preview1.gif
preview1.gif
 
 
preview2.gif
preview2.gif
 
 
tsconfig.json
tsconfig.json
 
 
tslint.json
tslint.json
 
 
vsc-extension-quickstart.md
vsc-extension-quickstart.md
 
 
wdio.conf.ts
wdio.conf.ts
 
 

Repository files navigation

Commit Message Editor

Edit commit messages in a convenient way.

Highlighs

  • Commit messages can be editable in a customizable form. This helps you to use a standardized format.
  • Portable configuration to share settings with teammates.
  • A huge textarea on a dedicated tab.
  • Clean look, thanks to Vscode Webview Elements

Preview

The factory settings follows the Conventional Commits specification.

Preview

More screenshots

  • Configuration editor
  • Regular textarea
  • Monospace textarea

Customizing the commit message form

The easiest way to customizing the commit message form is to use the Configuration Editor. To open the configuration editor, choose the Commit Message Editor: Open Settings Page command from the Command Palette, or click on the gear icon in the top right corner of the Commit Message Editor tab. Here, you can export the current configuration or import another one. The loaded configuration can be saved to the user or the workspace settings.

A JSON schema is created for the portable configuration file format. This means, you can use the VSCode toolset to edit the configuration file manually. Just create a new JSON file with this content and start to edit:

{
  "$schema": "https://bendera.github.io/vscode-commit-message-editor/schemas/config-v1.schema.json"
}

Structure of the portable configuration file

configVersion

Currently: "1". It might change in the future.

staticTemplate

Template for the text view, an array of strings. Every item in the array is a single line.

dynamicTemplate

Template for the form view, an array of strings. Every item in the array is a single line. Form fields (see the next section) can be referenced in the the template with the {token_name} format.

tokens

An array of token objects. It defines the form fields. The table below shows the structure of a token object:

Name Type Description Valid for
label string The label of the form item. all
name string The token name in the template. all
value string The value of the boolean token when it is true boolean
type enum The type of the token. Valid values are:
text: displayed as a text input
boolean: displayed as a checkbox
enum: displayed as a dropdown selector
all
description string A longer text under the form item all
prefix string Text before the value. It will only be applied if the value is not empty all
suffix string Text after the value. It will only be applied if the value is not empty all
multiline boolean Multiline text input text
monospace boolean Use the monospace editor in the multiline mode text
lines number Textarea initial height in lines text
maxLines number Textarea maximum height in lines text
maxLength number Maximum length of the value text
maxLineLength number The position of the vertical ruler when the monospace editor is used text
multiple boolean Multiple options enum
separator string Separator character when multiple options were selected enum
combobox boolean Is the selector filterable or not enum
options array Available options enum
options[{n}].label string The value of the option enum
options[{n}].description string A longer description for the option enum

Sample configs

  • Default
  • Gitmojis
  • Gitmojis - With Simplifed Chinese descriptions

You can customize the Gitmoji config with the scripts/gitmoji-config.js script

About

Edit commit messages in a convenient way.

marketplace.visualstudio.com/items?itemName=adam-bender.commit-message-editor

Topics

githacktoberfestvisual-studio-codevisual-studio-code-extensionvscodevscode-extension

Resources

Readme
MIT license
Activity

Stars

84 stars

Watchers

2 watching

Forks

15 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.