I am using word wrap to break large lines, but i want to make a new line number instead of using the same number for many lines because when i am trying to move the cursor with arrows, when is on the same line it goes even further. If you see the picture i want to goes as:lines 19,20,21
CodePudding user response:
VSCode word wrap only changes the way your code is being displayed, not the actual file content.
If you want to format the code into several lines, your best solution would be to use a code formatter. HTML formatting is supported out of the box in VSCode.
To do this, in your settings.json (Ctrl P
and type >Preferences: Open Settings (JSON)
in the command palette) add "html.format.wrapAttributes": "force-aligned"
, after which go back into your .html file and select Format Document
in the right click menu.
CodePudding user response:
Thank your for your response, the truth is that your advices helped me a lot and 90% works. Sometimes it does not, i uploaded the picture just to show you why and i am not requesting an answer. On the image if i click enter and break the line 119 everything works great.
Thank you