Last active
October 10, 2023 20:39
-
-
Save martincr/34f4fa08f6924512487d5b683c4fe800 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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