Language Model API Tutorial Sample logo

Language Model API Tutorial Sample

by ellenfel

This is a sample demonstrating how to use the GitHub Copilot Language Model API. It builds an extension that annotates code with inline tutoring tips.

View on GitHub

Last updated: N/A

What is Language Model API Tutorial Sample?

This is a sample VS Code extension that utilizes the GitHub Copilot Language Model API to provide inline tutoring tips within your code editor.

How to use Language Model API Tutorial Sample?

  1. Run npm install in the terminal to install dependencies. 2. Run the Run Extension target in the Debug View. 3. Open a folder in the new VS Code window. 4. Open a code file. 5. Run the Toggle Tutor Annotations command from the command palette.

Key features of Language Model API Tutorial Sample

  • Inline tutoring tips

  • Integration with GitHub Copilot Language Model API

  • VS Code extension

  • Code annotation

Use cases of Language Model API Tutorial Sample

  • Learning about the GitHub Copilot Language Model API

  • Building VS Code extensions

  • Adding inline documentation to code

  • Providing real-time code assistance

FAQ from Language Model API Tutorial Sample

What is the purpose of this sample?

To demonstrate how to use the GitHub Copilot Language Model API to build a VS Code extension that provides inline tutoring tips.

What dependencies are required?

The project requires npm to install the necessary dependencies.

How do I run the extension?

Run npm install followed by the Run Extension target in the Debug View.

Where do I find the 'Toggle Tutor Annotations' command?

The command is available in the VS Code command palette.

What code editor is required?

VS Code is required to run this extension.