Add AI assistance to our page structure
How can we leverage GitHub Copilot for this? Normally, web apps should have an index.html
as an entry point for the app. To leverage GitHub Copilot, create a comment, <!-- my comment -->
, on the page. You need to replace my comment
with your prompt. So, what do you type instead of my comment?
The answer is to provide GitHub Copilot with enough context for it to know what to generate in response.
GitHub Copilot builds a runtime context not only based on its training model but also based on file endings like .js
or .html
, and what text is in both open or closed files in the directory you’re in. This context is what decides what text should be generated based on what prompt you type.
Your first prompt, simple prompting, and aiding your AI assistant
Let’s try writing our first prompts in an open text file.
If you want to try the following prompts yourself while reading this, create an index...