Sublime Forum

Reindent File

#1

I’ve just started using sublime text 3. I used brackets before and a plugin I could not live without was Indentator which basically indented/reformatted your document (wether it was HTML / JS / GO etc) with your current indent space setting. There does not seem to be anything similar in sublime.

I know i could cmd+a and then Reindent from Edit -> Line -> Reindent. But that puts the cursor at the bottom of the page, and since I’m using VIM mode I’d start at the bottom when I move my caret. Is there any plugin that just skips the cmd+a step and indents the entire document with a keypress?

Thank you

0 Likes

#2

You could make a macro, maybe, that makes a bookmark, selects all, reindents, then goes to the bookmark.

0 Likes

#3

Thanks! I got it working with a macro.

0 Likes