Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>pre-commit SnippetsNew to Visual Studio Code? Get it now.
pre-commit Snippets

pre-commit Snippets

Anselm Hahn

|
144 installs
| (0) | Free
A snippet collection to set up your pre-commit config
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

pre-commit-snippets

Visual Studio Code pre-commit snippets provide easy configuration for your favorite git hooks.

Features

The "pre-commit Snippets" extension includes snippets for a variety of pre-commit hooks, including:

ansible-lint bandit black black-jupyter
codespell config-files css eslint
flake8 hook isort markdownlint
markdownlint-cli mypy no-commit-to-branch prettier
pygrep-hooks pyupgrade ruff shellcheck
yamllint

To use a snippet, simply start typing the name of the hook in your .pre-commit-config.yaml file, and select the snippet from the autocomplete dropdown.

_

Start with the hook snippet to initialize your .pre-commit-config.yaml file.

Requirements

A .pre-commit-config.yaml-file for adding your snippets.

Known Issues

There are currently no known issues. If you encounter a problem, please report it on the issue tracker.

Release Notes

0.0.1

Initial release of pre-commit Snippets.

See also: Changelog


  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft