Sublime Forum

Reindent doesnt work

#1

Hello

i want to reindent my code, but it doesnt work.

I try: Edit Line Reindent and strg+k

Anyone an idea?

0 Likes

#2

What version of Sublime Text are you using? What syntax are you using?

0 Likes

#3

Build 4180, HTML

0 Likes

#4

Have you selected all the text you’d like to reindent? Are you sure your HTML isn’t already ‘correctly’ indented?

0 Likes

#5

yes, strg+a

0 Likes

#6

That HTML looks already correctly indented to me. Note without plugins ST can’t format your code for you, it can only attempt to fix indentation, so it won’t split your lines up the way you might want.

0 Likes

#7

image

I think there used to be a way to indent the code like in the second picture. But that was years ago. Do you think that only works with a plugin?

0 Likes

#8

There’s multiple plugins that can format html: https://packagecontrol.io/search/format%20html. Reindent does what it says, it only adjusts indentation.

0 Likes

#9

thank you very much, I will look into it

0 Likes