Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>Copilot ContextNew to Visual Studio Code? Get it now.
Copilot Context

Copilot Context

Preview

Andyzali

|
1,385 installs
| (0) | Free
Context tools for you and Copilot
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Tools for supplying additional context to GitHub Copilot

🛠️ Overview

Working alongside GitHub Copilot in complex or extensive projects can sometimes be challenging without explicit context. 'Copilot Context' is designed to bridge this gap by allowing developers to seamlessly insert contextual comments within their code. These annotations serve as direct cues to Copilot, significantly enhancing its ability to provide relevant and accurate code suggestions.

By clarifying the role of functions or the expected behavior of code segments, 'Copilot Context' ensures that your intentions are clear, leading to a more efficient and productive coding session.

This extension not only simplifies the process of adding and managing contextual information but also supports a dynamic development environment where clarity and precision are paramount


📖 Usage

Once installed in Visual Studio Code, 'Copilot Context' will be available in the editor menu. Right click in any document and hover over the 'Copilot Context' submenu for available options. Alternatively, options can be executed from the command palette by typing in 'Copilot Context:' followed by the desired command.

There are a few commands that have key bindings associated with them:

  • Insert Context (cmd + shift + c)
  • Paste Context (cmd + shift + v)
  • Remove Context (cmd + shift + r)
Menu Image

✨ Features

🔗 Insert Context

Quickly annotate complex code by inserting a contextual comment right where your cursor is. Ideal for clarifying algorithm purposes or variable uses, enhancing GitHub Copilot's suggestions by providing clear intent.

Insert context example

🧩 Import Context [JavaScript]

Automatically organize and add import context in your document. This clarity assists GitHub Copilot by outlining dependencies upfront, improving its ability to suggest relevant code snippets.

Import context example

📋 Paste Context

Paste your clipboard's content as a contextual comment within your code. This feature is perfect for embedding external references or notes directly related to your current work, aiding Copilot in generating more accurate suggestions based on the broader context.

Paste context example

🧹 Remove Context

Streamline your code by removing all contextual comments with one command. Use this before commits to clean up temporary notes used to guide Copilot, ensuring your codebase remains clean and focused.

🗑️ Reset Context

Effortlessly clear contextual comments from your entire workspace with a single action. Ideal for when you're ready to commit or share your code, removing all temporary contexts that guided Copilot's suggestions.

Remove context example

🔍 Search File

Insert the content of a specific file as a contextual comment within your current document. Perfect for providing Copilot with additional background information from related modules, enhancing its code completion capabilities.

Search file example

📚 Search Definition [JavaScript]

Directly insert definitions or explanations for specific terms as contextual comments. This empowers Copilot by giving it precise information about custom functions or complex logic, leading to better-informed code suggestions.

Search definition example


🚀 Coming Soon!

📦 Node modules search

Search and include definitions from the vast resource of node modules quickly and effortlessly.

🧭 Smarter defintion search

Increasing accuracy and relevancy in search results across the project.

Support for other languages!


🌐 Languages

This extension primarily supports JavaScript/TypeScript projects. However, certain features like paste, remove, reset, and file search should work seamlessly for over 50+ languages. Feedback is always welcomed to increase support for a wider range of languages.


💬 Contact

For feedback, suggestions, or support, please feel free to reach out at andy@seedle.io. Your input is invaluable in helping me enhance Copilot Context and support more languages and features.

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