Sublime Forum

How to stop Auto indent for text inside a tag?

#1

I’m using ST3 build 3207.
Problem is when I save the files its indent everything, main issue is it break down every word into letters to the next line. Suppose I’ve copied a large code and paste it and when I save, it indents everything including the words, which looks so weird.
I have tried unindent option from edit/line, but didnt work.
I have also set the auto_indent & smart_indent to “False”, still not working…
Why is this causing ???
does any plugins could cause the problem ??
Is there any fix for this issue ??
Please let me know fast…
Thanks…

0 Likes

#2

Sublime doesn’t have any sort of functionality that tries to indent or prettify code when you save, so I would say this is definitely one of the packages that you have installed that is doing you unwanted favors.

The settings that you mention (auto_indent and smart_indent) control what Sublime does when you enter text yourself, so turning them off will only impact how many times you need to manually indent code while you’re entering it yourself (which may make editing more work than it needs to be).

0 Likes