vscode-codegen
The official VS Code extension for codegen files.
Available in the following marketplaces:
Prerequisites
You'll need Node.js (v16+) with npm (v8+) installed for using the extension.
The extension works on all OS where VS Code is running.
Overview
This extension is a useful companion when developing web apps with bundlers that require dynamic build-time generated files.
Features
Right now the following features are part of this extension:
- A provider for
.codegen
files (essentially using JavaScript as language)
- Snippets to scaffold new codegen files efficiently
Codegen Support
With this extension you'll get support for *.codegen
files. This boils down to getting JS support associated with such files.
Development
Installation
Clone the repository and install the dependencies using npm
:
npm i
Then open VS Code (code .
) and run it using F5
.
Publish
For publishing the official command line tool vsce
should be used.
vsce package
vsce publish -p <token>
This will package the current version of the repository and publish it. Make sure to have the right token specified. Follow the instructions outlined here to get a new one.