typos
Find and correct spelling mistakes in source code. More information: https://github.com/crate-ci/typos/blob/master/docs/reference.md.
- Check a file or directory for spelling mistakes:
typos
- Fix typos automatically in a file or directory:
typos
- Preview the changes before applying them:
typos --diff
- Check a file or directory, including hidden files and directories:
typos --hidden
- Check a file or directory, ignoring files that match a specific
globpattern:
typos --exclude
- Write the current configuration to a specific file:
typos --dump-config
- List all supported file types:
typos --type-list
- Show spelling mistakes in a specific output format (defaults to
long):
typos --format
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
