|
Download wp-calypso/docs/coding-guidelines/trailing-whitespace.md from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 762 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/docs/coding-guidelines/trailing-whitespace.md
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/docs/coding-guidelines/trailing-whitespace.md
-
curl -L -o trailing-whitespace.md https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/docs/coding-guidelines/trailing-whitespace.md
762 Bytes
| # Trailing Whitespace | |
| All source files should have trailing whitespace removed. | |
| It can be easy to leave whitespace at the end of lines by mistake. If you use Sublime Text you can strip this out automatically on save. Go to SublimeText 2 > Preferences > Settings - User (or just hit the Mac Standard cmd + ,). This should open your User Settings as a JSON file. Add the following to your file | |
| ``` | |
| “trim_trailing_whitespace_on_save”: true | |
| ``` | |
| If you use Coda2 you can use the Whiteout plugin: <http://erikhinterbichler.com/apps/white-out/> | |
| When touching code that does not have trailing whitespace trimmed, make a separate commit that does the stripping before starting to make changes. This makes it easier to follow changes when looking at the history. | |