Automatic tag indentation in Sublime Text 3

Asked

Viewed 1,081 times

1

I am facing problems copying and pasting XML or HTML codes from other applications in Sublime Text 3.

The HTML code for example, after a Ctrl + v, is in this style:

<!DOCTYPE html><html><head><title></title></head><body><h1></h1></body></html>

I wonder if there is a shortcut or plugin to insert a line break after the ">" of each tag and perform the indentation necessary for the HTML code to stay that way:

<!DOCTYPE html>
<html>
<head>
      <title></title>
</head>
<body>
      <h1></h1>
</body>
</html>

Thank you.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.