Copilot with Context
Simple plugin that adds snippets and other tools for Github copilot to improve productivity.
Quickly reformat a function.
Example: Both parameters are switched for all assertions in only a few seconds.
Select a section of code and add it as snippet for later.
Search for a snippet and quickly paste it above your cursor.
Remove any comment between <snippet></snippet> from the current file.
Paste a symbol
Search for a function, class, struct in your project and quickly paste its definition as a snippet above your cursor.
What are snippets
Snippets are simple comments in any language surrounded by <snippet> tags. They provide Copilot with the necessary context to call functions, etc. with the correct parameters.
The workflow is simple:
Where do snippets come from?
In the future you can define various sources for your snippets: