Skip to main content
jkos95
Participant
September 22, 2018
Question

Enter after open tag should create indented new line and push close tag to next line

  • September 22, 2018
  • 2 replies
  • 381 views

So I have looked through every setting and can't figure this out... I have my code set to create a closing tag right after you close the opening tag. However, when I hit enter to start adding code in the tags, my cursor is right in front of the closing tag. It looks like this:

<html>

|</html>

The pipe is my cursor.... I want to set it so after I type the opening tag and press enter, it does this:

<html>

       |

</html>

Someone please help me with this! It seems to be something with Emmet, but I can't find anything about editing the preferences... Any help would be greatly appreciated.

This topic has been closed for replies.

2 replies

Jon Fritz
Community Expert
Community Expert
September 24, 2018

It's not Emmet, but Brackets (DW's code engine).

There's currently no interface-based way to change how it indents as you type (there may be a way to change it in the brackets.json file though).

Going to Edit > Code > Apply Source Formatting should create the indentation based on the settings in your Tag Libraries, which will be closer to what you want, than what you get while typing. You can tie that command to a keyboard shortcut to create indents with a keystroke as you go.

BenPleysier
Community Expert
Community Expert
September 23, 2018

There is a feature to turn Emmet off as per

But this will not help with your problem.

I have not been able to supply a solution, hence I would suggest to report the problem by going to

Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!