M
M
MyQuestion2021-05-29 19:26:36
Visual Studio Code
MyQuestion, 2021-05-29 19:26:36

VS Code: Why is the img tag breaking and wrapping to a new line?

I don't understand why when an img tag gets too long it automatically wraps to a new line in vs code.

<a class="logo__link">
      <img class="logo__image" src="img/logotype-mobile.svg" width="226" height="30"
        alt="Длинный альт к изображению">
</a>

Disabled all plugins. Auto complete tag, removed altogether. What's wrong?

Upd:
Found a setting in VS Code:
- HTML>Format: wrap line length
Increased the value, characters from 120 to 1200. Everything worked fine.
There is also the HTML>Format: wrap attributes setting, it might be worth playing around with the values.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Martin, 2021-05-29
@Matrix27

Perhaps word wrap is enabled?

A
Artem Volkov, 2021-06-02
@AronTito

"diffEditor.wordWrap": "on"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question