Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>CodeGenNew to Visual Studio Code? Get it now.
CodeGen

CodeGen

etron

|
2,648 installs
| (1) | Free
Generates lines of code from a given line with placeholders and inserts variables in CSV format. Will generate as many lines as there are CSV variables.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

CodeGen README

Instead of Search & Replace, this extension is to allow you to create similar lines of code that vary. Provide a list of comma seperated values, and a line of code with %%% wherever you want the value inserted, and for each of the list items, it will generate a corresponding line of code.

Features

Quick and easy generation of lines of code to eliminate the need for manual copying and pasting.

How to Use

Click the CodeGen button that will be installed on the status bar. This should open a panel which lets you enter your values (copy & paste them in) and hit Generate. Then simply copy and paste the resulting lines of code into your project.

Use Search & Replace to get CSV values from a list

Use panel side-by-side to copy and paste from multiple sources.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft