Sublime Forum

Replace all spaced indents with tab indents on open/paste?

#1

I prefer to use tabs for indents.

Opening code (or pasting a block into my code) written by others who use spaces is annoying and makes the code alignment sloppy.

Is there a setting or plugin to automagically replace 4 spaces (and/or 2 spaces) with a tab, for example?

I find myself frequently having to search for " {4}" and replace with “\t” but it gets old fast.

0 Likes