In VS Code if I type "lorem" and then press enter it will generate a paragraph of 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?
How to get lorem ipsum to instantiate on multiple lines instead of 1 in VS Code?
37k Views Asked by Cole At
6
There are 6 best solutions below
0
On
Go to settings and type in "word wrap". Change "Editor: Word Wrap" from "off" to "bounded". This does exactly what I was wanting in the first place.
0
On
You just need to write lorem and the add the amount of words you would like it to add next to it like so:
//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!
0
On
You can write lorem20*5 and press the tab
20 = number of words 5 = number of lines
This will generate 20 random words in 5 lines in VSCode.
0
On
Open VS Code.
Go to the settings "Settings".
In the search bar at the top of the Settings tab, type "word wrap" and press Enter.
Look for the setting named "Editor: Word Wrap" and make sure it's set to "on". This setting will automatically wrap long lines in the editor.
Close the Settings tab.
Now, when you type Lorem Ipsum text in VS Code, it should automatically wrap onto multiple lines instead of extending off the screen horizontally.
I think you have to put each lorem call into its own element, like
p*4>lorem10.lorem10would be 10 words of lorem.