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:


Good Luck!

I periodically write about technology, maps, open data, and other software topics. To get updates about new posts:

See Also