You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2. Instead of manually exploring the project and various folders, try asking Copilot for an overview. In the chat pane, type '/' to view available slash commands — these offer quick, structured ways to interact with Copilot.
@@ -69,13 +69,13 @@ To get started:
69
69
3. In lieu of using natural language, type `/explain` into the chat pane. The output from GitHub Copilot will go into details of how the project is structured, including further information of the Frontend and Backend details.
70
70
71
71
<divalign="left">
72
-
<imgsrc="./images/002explain.gif"alt="Output of /Explain"width="500"height="300">
72
+
<imgsrc="./images/002explain.gif"alt="Output of /Explain">
73
73
</div>
74
74
75
75
4. As a visual learner, you can ask GitHub Copilot to 'create a diagram of the workflow of the application'. This could be saved into a README for further documentation.
76
76
77
77
<divalign="left">
78
-
<imgsrc="./images/003diagramoutput.gif"alt="Output of Mermaid syntax"width="500"height="300">
78
+
<imgsrc="./images/003diagramoutput.gif"alt="Output of Mermaid syntax">
79
79
</div>
80
80
81
81
In the above exercises we achieved the following:
@@ -101,7 +101,7 @@ In the previous section you learned how to use both natural language or slash co
101
101
The output should be similar to this:
102
102
103
103
<divalign="left">
104
-
<imgsrc="./images/004pydanticmodel.jpg"alt="Create a Pydantic model"width="500"height="300">
104
+
<imgsrc="./images/004pydanticmodel.jpg"alt="Create a Pydantic model">
105
105
</div>
106
106
107
107
2. Now we want to use the inline feature of Copilot. When using the inline feature we can focus on the code in front of us and make progressive changes in our code base. Next, we are going to generate a new endpoint at the bottom of the `main.py` file. Place your cursor under the last route that was created and press `CTRL + I` to open inline chat. Type or copy in the following text:
@@ -111,7 +111,7 @@ The output should be similar to this:
Review the suggestions from Copilot and verify the output. In this instance we combined both the slash command ability and the inline chat feature. **Note:** It is important to always verify the output from Copilot.
@@ -145,7 +145,7 @@ Improve the docstring for the checksum_text function with more details and examp
145
145
**Note:** In the case that you do not see [Next Edit Suggestions](https://code.visualstudio.com/blogs/2025/02/12/next-edit-suggestions) appear in your editor, check that they are enabled in your editor.
@@ -180,13 +180,13 @@ In the above exercises we achieved the following:
180
180
When executing in Agent mode, Copilot will take a bit longer to work through all of the tasks. It will first parse your intent from the prompt above. It will plan and execute the various tasks.
But where Agent mode really shines is that it will iterate on its own output until it resolves errors and reaches a working solution. As agent mode is running, we can see it is running tests to check and verify its own code:
The example below can be customized in your own project, for this example we've created an instructions file specific to our Python requirements in this project.
0 commit comments