简体   繁体   English

如何让 lorem ipsum 在 VS Code 中实例化多行而不是 1?

[英]How to get lorem ipsum to instantiate on multiple lines instead of 1 in VS Code?

In VS Code if I type "lorem" and then press enter it will generate a paragraph of lorem ipsum.在 VS Code 中,如果我输入“lorem”然后按回车,它将生成一段 lorem ipsum。 The only problem is that the paragraph comes out as one very long line of text as opposed to several lines in the text editor.唯一的问题是该段落是一行很长的文本,而不是文本编辑器中的几行。 Is there a setting I can change so that it automatically generates my lorem ipsum on multiple lines?有没有我可以更改的设置,以便它在多行上自动生成我的 lorem ipsum?

I think you have to put each lorem call into its own element, like p*4>lorem10 .我认为您必须将每个 lorem 调用放入其自己的元素中,例如p*4>lorem10

lorem10 would be 10 words of lorem. lorem10将是 lorem 的 10 个单词。

lorem 10 emmet 演示

Go to settings and type in "word wrap". Go 设置并输入“自动换行”。 Change "Editor: Word Wrap" from "off" to "bounded".将“编辑器:自动换行”从“关闭”更改为“有界”。 This does exactly what I was wanting in the first place.这正是我一开始想要的。

You just need to write lorem and the add the amount of words you would like it to add next to it like so:您只需要编写lorem并添加您希望在其旁边添加的单词数量,如下所示:

//up to 10 words:
    
   lorem10
                
//up to "n" words:
   lorem"n"


    

as a result you would get:结果你会得到:

Lorem ipsum dolor sit amet consectetur adipisicing elit. Neque, odio!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM