我希望在使用VS代码中使用Word Rap时使用数字制作新行

发布于 2025-01-27 17:50:13 字数 218 浏览 1 评论 0原文

vs code

我正在使用Word warp来折断大线路,但是我想制作一条新行数字不是在许多线路上使用相同的数字,因为当我试图用箭头移动光标时,当在同一行上时,它会进一步发展。如果您看到图片,我想拍:第19,20,21行

vs code

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

纵山崖 2025-02-03 17:50:13

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 select Format Document in the right click menu.

滴情不沾 2025-02-03 17:50:13

在我单击“ 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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文