Clean Whitespace in Code and Config Files
Remove trailing spaces, normalise line endings, and fix indentation issues in code and configuration files.
Code tips
Trailing whitespace in code causes unnecessary git diff noise. Enable "trim each line" to remove it before pasting into a pull request description or code review.
Mixed line endings (CRLF on Windows, LF on Unix) cause issues in cross-platform projects. Use the line endings selector to normalise before committing.
Config files (.env, .yml, .ini) often break if they contain trailing spaces after values. Clean them here before committing to avoid hard-to-debug issues.
SQL queries copied from ORMs or documentation often have excess indentation. Collapse multiple spaces to produce clean, minimal queries for documentation.
එය ක්රියා කරන්නේ කෙසේද
අපගේ දේ ඇයි භාවිතා කරන්නේ?
Also check out…
Clean Copy-Pasted Text
Fix messy formatting from Word, PDFs, and web page
Clean Text for Content Management Systems
Normalise text before pasting into WordPress, Cont
Clean Whitespace in Data Files
Remove leading/trailing spaces from data values be
Clean Whitespace in Email Templates
Normalise spacing in email copy before sending — p
