Tunahan Akdogan
Tunahan Akdogan

Reputation: 256

Visual Studio Code Html tag allignment

On line 14 to 17 p tags are wrapping the text from top and bottom but on line 18 p tag is wrap the text from right and left. I noticed that the length of line cause that but I can't find the setting of it. I want all tags are wrap the content from top and bottom like line 14 to 17. Which settings do I have to change.The picture of IDE

Upvotes: 1

Views: 1034

Answers (2)

Tunahan Akdogan
Tunahan Akdogan

Reputation: 256

I found a way in Vscode: File -> Preferences -> Settings -> Extensions -> Prettier -> find the tab width and change the 80 value to 1 or 2 in that case everything I write in tags are automatically placed in the top and bottom of the text between texts. Tab width example

Example of the result

As seen in the picture tags are always on the top and bottom of the text.

Upvotes: 1

Related Questions