Auto indenting text in Sublime Text 2

Learning Hadoop and Spark?

I've scoured the internet and I think this free Big Data course from UC San Diego is a great way to jump in. It's hosted on Coursera, so you can audit the course for free.

I only just realized this was a feature, so I’m excited to share it.

If the indenting is all messed up in a file you are currently editing, you can have Sublime Text 2 try and auto-fix the indenting for you.

Select the text you wish to fix, then:

Edit -> Line -> Reindent

That’s it! This made me so happy today because I thought I was going to have to do everything by hand (or with bash).

Matthew Rathbone's Picture

Matthew Rathbone

CEO of Beekeeper Data. British. Data Nerd. Lucky husband and father. More about me

Join the discussion