我希望在使用VS代码中使用Word Rap时使用数字制作新行
我正在使用Word warp来折断大线路,但是我想制作一条新行数字不是在许多线路上使用相同的数字,因为当我试图用箭头移动光标时,当在同一行上时,它会进一步发展。如果您看到图片,我想拍:第19,20,21行
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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
更多
发布评论
评论(2)
Vscode Word Wrap仅更改代码的显示方式,而不是实际的文件内容。
如果您想将代码格式化为几行,则最好的解决方案是使用代码格式。 html格式在VSCODE的包装盒中支持。
为此,在您的设置中。 format.wrapattributes”:“ force-caremed” ,之后返回您的.html文件,然后在右键单击菜单中选择
form format document
。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 selectFormat Document
in the right click menu.在我单击“ enter enter ”之前,
请感谢您的回答,事实是您的建议对我有很大帮助和90%的工作。有时,我上传了图片只是为了向您展示原因,而我没有请求答案。在图像上,如果我单击Enter并打破行119,一切都很好。
谢谢
before i click enter
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