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 BackEnd and Front 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.
@@ -73,13 +73,13 @@ To get started:
73
73
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.
74
74
75
75
<divalign="left">
76
-
<imgsrc="./images/002explainoutput.gif"alt="Output of /Explain"width="500"height="300">
76
+
<imgsrc="./images/002explainoutput.gif"alt="Output of /Explain">
77
77
</div>
78
78
79
79
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.
80
80
81
81
<divalign="left">
82
-
<imgsrc="./images/movingdiagram.gif"alt="Output of application diagram"width="500"height="300">
82
+
<imgsrc="./images/movingdiagram.gif"alt="Output of application diagram">
83
83
</div>
84
84
85
85
In the above exercises we achieved the following:
@@ -91,13 +91,13 @@ In the above exercises we achieved the following:
91
91
1. Ask GitHub Copilot in the chat pane to "run and debug" the backend project (you can also do this from the 'run and debug' panel in the editor). Start Debugging the selected project.
92
92
93
93
<divalign="left">
94
-
<imgsrc="./images/003RunBackEndProject.jpg"alt="Run and Debug in the Panel"width="300"height="300">
94
+
<imgsrc="./images/003RunBackEndProject.jpg"alt="Run and Debug in the Panel">
95
95
</div>
96
96
97
97
2. The BackEnd project for our Weather API will now be running in port 8080. If you used Copilot to Run and Debug, it will output the URL for you in the chat pane. Simply click the text and it will open a new tab with the published URL. Ensure that `/weatherforecast` is in the published URL.
98
98
99
99
<divalign="left">
100
-
<imgsrc="./images/004rundebugURL.jpg"alt="Run and Debug Output"width="300"height="500">
100
+
<imgsrc="./images/004rundebugURL.jpg"alt="Run and Debug Output">
101
101
</div>
102
102
103
103
If the URL is not loading properly, check the format and use the below format for the final URL:
@@ -109,7 +109,7 @@ https://< your url>.app.github.dev/weatherforecast
109
109
**NOTE:** If you chose to run and debug the application from the run and debug panel, you will see the URL for the website in the _Ports_ tab in the editor:
110
110
111
111
<divalign="left">
112
-
<imgsrc="./images/005ports.jpg"alt="port view in the editor"width="500"height="300">
112
+
<imgsrc="./images/005ports.jpg"alt="port view in the editor">
113
113
</div>
114
114
115
115
1. In this next step we want to refactor some code and generate a new record for our Weather API. The goal is to add a new record that includes the name of the city. We are going to achieve this by asking Copilot directly from the file using code comments. From the file pane, navigate to the following path `SampleApp\BackEnd\Program.cs` and open `Program.cs`. Navigate to the end of the file and type in (or copy):
@@ -121,13 +121,13 @@ https://< your url>.app.github.dev/weatherforecast
121
121
The output should be similar to this:
122
122
123
123
<divalign="left">
124
-
<imgsrc="./images/006internalrecord.jpg"alt="changes to existing record"width="500"height="300">
124
+
<imgsrc="./images/006internalrecord.jpg"alt="changes to existing record">
125
125
</div>
126
126
127
127
4. Now we want to use the inline feature of Copilot. Using the inline feature we can focus on the code in front of us and make progressive changes as needed in our code base. Next, we will create a new C# class by creating a new file under the `Backend` folder: `SampleApp\BackEnd\Customer.cs`.
@@ -154,7 +154,7 @@ Review the suggestions from Copilot and verify the output. **Note:** It is impor
154
154
**Note:** Inthecasethatyoudonotsee [NextEditSuggestions](https://code.visualstudio.com/blogs/2025/02/12/next-edit-suggestions) appear in your editor, check that they are enabled in your editor.
0 commit comments