Whitespace inconsistencies are one of the most common sources of bugs and formatting issues in code and data files. Tabs vs. spaces conflicts cause Python indentation errors; trailing whitespace can break diffs and VCS comparisons; multiple spaces in data files corrupt column alignment. This tool converts between all common whitespace representations.
It depends on the language and style guide. Python PEP 8 recommends 4 spaces. JavaScript/TypeScript often uses 2. Most Go code uses tabs. Check your project's .editorconfig or ESLint rules.
Trimming (or stripping) removes whitespace from the beginning (left/leading) and/or end (right/trailing) of each line. The 'trim each line' option removes both. Use the targeted options to strip only leading or only trailing spaces.