Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Using-GitHub-Copilot-with-CSharp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ The output should be similar to this:
<img src="./images/007customerfile.png" alt="New file customer.cs">
</div>

From the top of the editor, press `CTRL + I` to open inline chat and type (or copy) in:
From the top of the editor, press `CTRL + I` (macOS: `Cmd + I`) to open inline chat and type (or copy) in:

```csharp
// Create a class for a Customer with Id, Name, and Email, and a method to validate email format
Expand All @@ -155,7 +155,7 @@ Review the suggestions from Copilot and verify the output. **Note:** It is impor
<img src="./images/008regexvalid.jpg" alt="Validate Regex">
</div>

6. You can further highlight the method and ask inline (or select `CTRL + Shift + I`) to open chat and ask Copilot 'Explain what IsValidEmail() does'. This provides another way to interact with Copilot, verify it's output and to further understand the code that is written.
6. You can further highlight the method and ask inline (or select `CTRL + Shift + I` (macOS: `Cmd + Shift + I`)) to open chat and ask Copilot 'Explain what IsValidEmail() does'. This provides another way to interact with Copilot, verify it's output and to further understand the code that is written.

7. While Inline suggestions are great at suggesting code similar to an autocomplete mechanism, Next Edit Suggestions (NES) predict the next logical change in your code based on recent edits anywhere in your file. This helps to maintain flow and consistency as a developer. NES suggests revisions to your code, comments and event tests. It can track recent changes to anticipate future edits, working across multiple lines and symbols. It will highlight suggestions with arrows in the editor gutter. In the above steps you may have already noticed a green arrow in the gutter, providing a suggestion and the ability to accept or decline the suggestion.

Expand Down
2 changes: 1 addition & 1 deletion Using-GitHub-Copilot-with-Python/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ The output should be similar to this:
<img src="./images/004pydanticmodel.jpg" alt="Create a Pydantic model">
</div>

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:
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` (macOS: `Cmd + I`) to open inline chat. Type or copy in the following text:

```python
# Create a FastAPI endpoint that accepts a POST request with a JSON body containing a single field called "text" and returns a checksum of the text
Expand Down
Loading