Sublime Text Remove Leading Spaces

This is a quick trick to remove the leading spaces in Sublime Text. Go into Find/Replace mode (Ctrl+h), click the “Regex” button, and use this regex string:

^[^Srn]+

Good Luck!

Get an email summary of my blog posts (four per year):

Join email newsletter

... or follow the blog here:

See Also