liveBook · Manning

VS Code extension template generator

As explained in LLMs in Production

A VS Code extension template generator is a tool that creates starter project files and scaffolding for a Visual Studio Code extension.

A VS Code extension template generator creates a starter project repository so you can begin building an extension instead of assembling its files manually. It launches a terminal walkthrough that customizes the generated scaffolding. section 10.3

A typical setup involves:

  • Install Node and npm, preferably through a Node version manager, and update VS Code. section 10.3
  • Choose JavaScript or TypeScript, provide a name and description, select type-checking and Git options, and choose npm. section 10.3
  • Use the generated repository as scaffolding, especially its package.json manifest and extension.js entry point. section 10.3

From Hello World to inline suggestions

The generator produces boilerplate activation code that registers a Hello World command. That placeholder can then be replaced with a VS Code inline completion provider, such as one that sends selected text to an LLM service and returns the response as an editor suggestion.

How LLMs in Production covers it

How deep it goes
Explains installation, walkthrough choices, generated files, and entry points while deferring most configuration-file details.
Examples
Uses a Hello World repository, generator walkthrough, boilerplate activation file, and inline completion provider.
What it assumes
Assumes Node, npm, and VS Code installation while providing guidance for JavaScript and TypeScript newcomers.
What you can do after
Builds a starter extension repository and replaces its boilerplate with VS Code API functionality.
How it connects
Connects extension scaffolding with Node.js, npm, Yeoman, JavaScript, TypeScript, extension manifests, and the VS Code API.

This explainer was generated by Manning's knowledge graph from the text of LLMs in Production. The section links point to the parts of the book it draws on.