Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eshrinivasan/0be802bdef4d6973a5d41611e78b6ee6 to your computer and use it in GitHub Desktop.
Save eshrinivasan/0be802bdef4d6973a5d41611e78b6ee6 to your computer and use it in GitHub Desktop.
1. Find > Replace
2. Click 'Regular Expression' box
3. Enter ^\s+ as your search string
4. Click 'Find' to confirm it works as anticipated
5. Use 'Replace All' to remove all leading spaces from each newline
NB. For trailing spaces replace with \s+$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment