typos
Find and correct spelling mistakes in source code. tldr-pages
On several platforms
Several platforms
Check a file or directory for spelling mistakes
typos path/to/file_or_directoryIdentifyFix typos automatically in a file or directory
typos --write-changes path/to/file_or_directoryIdentifyPreview the changes before applying them
typos --diff path/to/file_or_directoryIdentifyCheck a file or directory, including hidden files and directories
typos --hidden path/to/file_or_directoryIdentifyCheck a file or directory, ignoring files that match a specific glob pattern
typos --exclude pattern path/to/file_or_directoryIdentifyWrite the current configuration to a specific file
typos --dump-config path/to/typos.tomlIdentifyList all supported file types
typos --type-listIdentifyShow spelling mistakes in a specific output format (defaults to long)
typos --format brief path/to/file_or_directoryIdentify