Tools for supplying additional context to GitHub Copilot🛠️ OverviewWorking 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 📖 UsageOnce 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:
✨ Features🔗 Insert ContextQuickly 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. 🧩 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. 📋 Paste ContextPaste 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. 🧹 Remove ContextStreamline 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 ContextEffortlessly 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. 🔍 Search FileInsert 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 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. 🚀 Coming Soon!📦 Node modules searchSearch and include definitions from the vast resource of node modules quickly and effortlessly. 🧭 Smarter defintion searchIncreasing accuracy and relevancy in search results across the project. Support for other languages! 🌐 LanguagesThis 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. 💬 ContactFor 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. |