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
Add a breakpoint in line 24 (press F9) and refresh the browser with the Url to test the endpoint. The browser should not show the weather forecast, and in the Visual Studio Editor we can see how the program execution was paused at line 24.

77
77
78
-
Pressing F10 we can debug step-by-step until line 32, where we can see the generated values. The application should have been generated samples Weather values for the next 5 days. The variable `forecast` has an array containing these values.
### 🗒️ Step 2: Get familiarized with GitHub Copilot Slash Commands
86
+
### 🗒️ ステップ2: GitHub Copilotのスラッシュコマンドに慣れる
87
87
88
-
As we start working in our codebase, we usually need to refactor some code, or get more context or explanations about it. Using GitHub Copilot Chat, we can have AI-driven conversations to perform these tasks.
Now let's use a slash command, in GitHub Copilot to understand a piece of code. Select lines 22-35, press `CTRL + I` to open the inline chat, and type `/explain`に移動します。
@@ -105,26 +105,26 @@ The selected C# code is part of an ASP.NET Core application using the minimal AP
105
105
-`/fix` to propose a fix for the problems in the selected code
106
106
-`/generate` to generate code to answer your question
107
107
108
-
Let's use the `/tests` command to generate tests to the code. Select lines 39-42, press `CTRL + I`to open the inline chat, and type `/tests` (or select the /tests slash command) to generate a new set of tests for this record.
A new class `ProgramTests.cs` was created and added to the project. This tests are using XUnit, however, you can ask to generate tests using another Unit Test library with a command like this one `/tests use MSTests for unit testing`.
114
+
新しいクラス`ProgramTests.cs`が作成され、プロジェクトに追加されました。このテストはXUnitを使用していますが、`/tests use MSTests for unit testing`のようなコマンドを実行することで、別のユニットテストライブラリを使用してテストを生成することもできます。
115
115
116
-
***Important:**We are not going to use the test file in this project. You must delete the generated test file to continue.*
Finally, let's use the `/doc`to generate automatic documentation to the code. Select lines 39-42, press `CTRL + I`to open the inline chat, and type `/doc`(or select the command) to generate the documentation for this record.

121
121
122
-
Inline chat, the Chat Panel, and slash commands are part of the amazing tools that support our development experience with GitHub Copilot. Now we are ready to add new features to this App.
0 commit comments