Skip to content

nodeGarden/randexp_vscode

Repository files navigation

README

Very simple extension. Simply set your cursor to the point you want to insert, or highlight text to replace, then open the Command Palette and type: create random value by Regex (or similar) or randexp. input a fully functional regex, and your output will be inserted. This is useful for generating placeholders or random passwords.

  • Example regex: ([A-Za-z]|[0-9]){7}-([A-Za-z]|[0-9]){6}-([A-Za-z]|[0-9]){3}
  • Matching output: xx123xx-113xxx-abc

This is purely just encapsulating the RandExp library: https://www.npmjs.com/package/randexp (all credit for functionality there); I'm just putting it as an extension for my own convenience.

Icon from: https://www.iconfinder.com/icons/211887/shuffle_icon

Code at: https://github.com/nodeGarden/randexp_vscode

About

A simple extension to output a randomize value based on a regular expression for it's pattern.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published