Serve the files locally with cmd + P and select PHP Server: Serve project in VS Code.
Commitizen is currently tested against node 10 and 12 although it may work in older node. You should also have npm 6 or greater.
npm install -g commitizenSimply use git cz or just cz instead of git commit when committing. You can also use git-cz, which is an alias for cz.
Alternatively, if you are using NPM 5.2+ you can use npx instead of installing globally:
npx czWhen you're working in a Commitizen friendly repository, you'll be prompted to fill in any required fields and your commit messages will be formatted according to the standards defined by project maintainers.
Install commitizen globally, if you have not already.
npm install -g commitizenInstall your preferred commitizen adapter globally, for example cz-conventional-changelog
npm install -g cz-conventional-changelogCreate a .czrc file in your home directory, with path referring to the preferred, globally installed, commitizen adapter
echo '{ "path": "cz-conventional-changelog" }' > ~/.czrcYou are all set! Now cd into any git repository and use git cz instead of git commit and you will find the commitizen prompt.
Protip: You can use all the git commit options with git cz, for example: git cz -a.
If your repository is a nodejs project, making it [Commitizen-friendly] is super easy.
