Skip to content

A vscode extension to generate text using Format String and JavaScript Expression.

Notifications You must be signed in to change notification settings

ZachQin/vscode-text-generator

Repository files navigation

text-generator README

A vscode extension to generate text using Template String and JavaScript Expression.

Features

Generate text using template string and JavaScript expression in batches: ${idx*1} + ${idx*2} = ${idx*3} Generate text using template string and JavaScript expression in batches

Generate text using JavaScript expression: ${[1, 2, 3].join('-')} Generate text using JavaScript expression

Usage

  • Command: Generate Text with Template
  • Keybindings: CTRL+ALT+G on Windows and Linux or CMD+OPTION+G on OSX

You can input template string in the first Inputbox and use any JavaScript expression in ${}.

There are some builtin variables.

Name Description
idx Represents the 0-based index. Then enter the amount of text you want to generate in the second input box, which defaults to 1.
sel Represents current selected string.

About

A vscode extension to generate text using Format String and JavaScript Expression.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published