ArtApp
ArtApp

Reputation: 1

How do I get the Tab key to do what I expect

Dev Ed has a number of courses on YouTube. I have been viewing on named HTML and CSS Tutorial.

I have Visual Studio Code installed and added the packages suggested in the Tutorial. I get to the point where the <!DOCTYPE html> tag has been created and on a new line the tag <html> has been typed. This automatically completes the end tag, hence <html></html>. If I am understanding this correctly, Ed then says hit the Tab key but it just produces spacing as you would normally expect with a Tab. My expectation is that it formats the code as follows:

<html>

</html>

This does not happen.

Upvotes: 0

Views: 58

Answers (2)

SMAKSS
SMAKSS

Reputation: 10520

According to VSCode release notes, such a feature has been removed from the IntelliSense and replaced with </.

In order to autocomplete your tags you can do either of these:

  1. Use ctrl + space to select from provided items in the suggestion list.

  2. Use third party plugins like this.

Upvotes: 1

Vahe Yavrumian
Vahe Yavrumian

Reputation: 558

Save your file as .html or if already have done that, click on the text between CRLF and smiley face and select HTML

VS code screenshot

Upvotes: 0

Related Questions