Skip to content

Visual Studio Code extension that provides customizable snippets for generating Lorem Ipsum

License

Notifications You must be signed in to change notification settings

aisevim/quipsum

Repository files navigation

Overview

Quipsum is a Visual Studio Code extension that provides customizable snippets for generating Lorem Ipsum placeholder text within your code files.

[triggerText][count]?[unit]?
lorem 10 words

// triggerText => The keyword that triggers the generation of placeholder
// count => count of [sentences|words|paragraphs] generated
// unit => sentences|words|paragraphs

Snippet Examples

  • lorem : Inserts 5-15 sentences.

  • lorem1 : Inserts 1 sentence.

  • loremp : Inserts 1 paragraphe.

  • loremw : Inserts 1 word.

  • lorem10w : Inserts 10 words.

Customization

{
	"quipsum.triggerText": "generate",
	"quipsum.units.words": "words",
}
  • generate10words : Inserts 10 words.

{
	"quipsum.unit": "words",
	"quipsum.count": 2,
}
  • lorem : Inserts 2 words.

Features

  • Customizable Snippets: Easily customize the length and format of Lorem Ipsum text snippets according to your needs.

  • Quick Insertion: Insert Lorem Ipsum snippets with just a few keystrokes, saving you time and effort.

Installation

  1. Open VSCode.
  2. Go to the Extensions view (Ctrl+Shift+X or Cmd+Shift+X).
  3. Search for "quipsum" and install the plugin.

Extension Settings

config Description default
quipsum.triggerText The keyword that triggers the generation of placeholder text when typed in the editor lorem
quipsum.unit The default unit for the quipsum.triggerText command in the extension. sentences
quipsum.units.sentences The unit symbol for sentences in the quipsum.triggerText command s
quipsum.units.words The unit symbol for words in the quipsum.triggerText command. w
quipsum.units.paragraphs The unit symbol for paragraphs in the quipsum.triggerText command p
quipsum.count The default count for the 'quipsum.triggerText' command in the extension 1
quipsum.suffix Line ending \n
quipsum.paragraphLowerBound Min. number of sentences per paragraph 3
quipsum.paragraphUpperBound Max. number of sentences per paragraph 7
quipsum.sentenceLowerBound Min. number of words per sentence 5
quipsum.sentenceUpperBound Max. number of words per sentence 15

Troubleshooting

Suggestions are not displayed

If you're experiencing issues where Visual Studio Code isn't automatically displaying suggestions in certain programming languages, you can modify your settings.json file with the following configuration:

"editor.quickSuggestions": {
  "strings": true
}

This setting enables automatic suggestions inside strings.

⚠️ Warning: Enabling this setting will cause VS Code to display suggestions in all strings, which can be distracting or unwanted in some scenarios. Use this setting with caution.

License

This project is licensed under the MIT License.

Release Notes

See CHANGELOG.md for details on each release.