Skip to main content
Participant
March 9, 2018
Answered

Auto indent tag block after press enter between them

  • March 9, 2018
  • 1 reply
  • 1268 views

Hi all.

I tried to put literally a title to ask my question. In Dreamweaver CC 2017, when I wrote a tag, for example:

<div></div>

After that, putting the cursor betweem them and pressing enter, the tag block was indent automatically like this:

<div>

     "blank space indented"

</div>

Now, in Dreamweaver CC 2018, when I do the same proccess, I have a tag block like this:

<div>

</div>

Without the blank space indented. There is a way to do as was made in DW 2017?

This topic has been closed for replies.
Correct answer David_Powers

Awrawra  wrote

I did like I wish it was, but the result don't changed. What am I doing wrong?

Unfortunately, I don't think you're doing anything wrong. Automatic indentation has gone haywire in DW CC 2018. When working in Code View, you either need to handle the indentation manually, or use Apply Source Formatting as Nancy suggests after you have finished typing your code.

Apply Source Formatting does a good job of tidying up code, but it would be much better if Code View handled formatting automatically as before.

1 reply

Nancy OShea
Community Expert
Community Expert
March 9, 2018

Edit Tag Libraries the way you want them to appear.  Then click on Apply Source Formatting.  See screenshot.

Nancy O'Shea— Product User & Community Expert
AwrawraAuthor
Participant
March 11, 2018

Hey Nancy,

Thank you very much for the response. But, even doing like you said, editting the tag library, still the same.

As you can see below, I did like I wish it was, but the result don't changed. What am I doing wrong?

David_Powers
David_PowersCorrect answer
Inspiring
March 12, 2018

Awrawra  wrote

I did like I wish it was, but the result don't changed. What am I doing wrong?

Unfortunately, I don't think you're doing anything wrong. Automatic indentation has gone haywire in DW CC 2018. When working in Code View, you either need to handle the indentation manually, or use Apply Source Formatting as Nancy suggests after you have finished typing your code.

Apply Source Formatting does a good job of tidying up code, but it would be much better if Code View handled formatting automatically as before.