├── .devcontainer
├── introduction
│ └── devcontainer.json
├── mini-game
│ └── devcontainer.json
└── welcome
├── .github
└── workflows
│ └── codeql.yml
├── .gitignore
├── .vscode
└── settings.json
├── 01-Introduction-to-GitHub
├── README.md
└── github 101 - Introduction.pdf
├── 02-Introduction-to-GitHub-Codespaces
├── README.md
└── github 101 - codespaces.pdf
├── 03-Introduction-to-GitHub-Copilot
├── GitHub 101- Copilot Intro.pdf
├── README.md
└── steps
│ ├── 1-copilot-extension.md
│ ├── 2-skills-dotnet.md
│ ├── 3-copilot-hub.md
│ ├── 4-copilot-comment.md
│ └── img
│ ├── 1-skills-0.png
│ ├── 1-skills-1.png
│ ├── 2-skills-commit.png
│ ├── 2-skills-dotnet-0.png
│ ├── 2-skills-dotnet-1.png
│ ├── 3-copilot-hub-0.png
│ └── 4-copilot-comment-0.png
├── 04-Using-GitHub-Copilot-with-CSharp
├── README.md
└── images
│ ├── 004AskCopilotAboutProject.png
│ ├── 005OpenRepoInCodeSpaces.png
│ ├── 006RunBackEndProject.png
│ ├── 007ProjectRunningOpenInNewTab.png
│ ├── 008TestRunningApi.png
│ ├── 009DebugBackEndDemo.png
│ ├── 010DebugForecastValue.png
│ ├── 011OpenBackEndProject.png
│ ├── 011SlashCommandExplain.gif
│ ├── 012SlashCmdTests.gif
│ ├── 013SlashCmdDoc.gif
│ ├── 014AddNewRecord.gif
│ ├── 020GeneratedCode.gif
│ ├── 030RunAndDebugTheBackEndProject.png
│ ├── 032TestAndDebugUsingUrls.png
│ ├── OpenEditsWindows.png
│ └── WeatherWithEdits.png
├── 05-Creating-Mini-Game-with-GitHub-Copilot
├── CODE_OF_CONDUCT.md
├── LICENSE.md
├── README.md
├── SECURITY.md
└── images
│ ├── 06-Creating-Mini-Game-with-GitHub-Copilot-001.png
│ ├── 06-Creating-Mini-Game-with-GitHub-Copilot-002.png
│ ├── 06-Creating-Mini-Game-with-GitHub-Copilot-003.png
│ └── requirements.txt
├── 06-Using-GitHub-Copilot-for-Azure-to-Deploy-to-Cloud
├── 01-Getting-Started-with-GitHub-Copilot-for-Azure.md
├── 02-Build-and-deploy-your-application-with-GitHub-Copilot-for-Azure.md
├── 03-Get-Answers-to-your-Questions-about-Azure-Services-and-Resources.md
├── README.md
└── images
│ ├── mod2-CopilotChat-2.png
│ ├── mod2-CopilotChat-3.png
│ ├── mod2-CopilotChat-4.png
│ ├── mod2-CopilotChat-5.png
│ ├── mod2-CopilotChat-6.png
│ ├── mod2-CopilotChat-7.png
│ ├── mod2-CopilotChat-8.png
│ ├── mod2-CopilotChat-9.png
│ ├── mod2-CopilotChat.png
│ └── mod3-prompt-example.png
├── CODE_OF_CONDUCT.md
├── LICENSE
├── README.md
├── SECURITY.md
├── SUPPORT.md
├── code
├── MasteringCopilot.sln
└── MiniGame
│ ├── MiniGame.csproj
│ └── Program.cs
├── images
└── GitHub 101 - Curriculum dotnet.png
├── slides
├── Let's Learn .NET - GitHub Copilot.pptx
└── Let's Learn .NET - GitHub Copilot_francais.pptx
└── translations
├── es
├── 01-Introduction-to-GitHub
│ └── README.md
├── 02-Introduction-to-GitHub-Codespaces
│ └── README.md
├── 03-Introduction-to-GitHub-Copilot
│ ├── README.md
│ └── steps
│ │ ├── 1-copilot-extension.md
│ │ ├── 2-skills-dotnet.md
│ │ ├── 3-copilot-hub.md
│ │ └── 4-copilot-comment.md
├── 04-Using-GitHub-Copilot-with-CSharp
│ └── README.md
├── 05-Creating-Mini-Game-with-GitHub-Copilot
│ ├── CODE_OF_CONDUCT.md
│ ├── LICENSE.md
│ ├── README.md
│ └── SECURITY.md
├── 06-Using-GitHub-Copilot-for-Azure-to-Deploy-to-Cloud
│ ├── 01-Getting-Started-with-GitHub-Copilot-for-Azure.md
│ ├── 02-Build-and-deploy-your-application-with-GitHub-Copilot-for-Azure.md
│ ├── 03-Get-Answers-to-your-Questions-about-Azure-Services-and-Resources.md
│ └── README.md
├── CODE_OF_CONDUCT.md
├── README.md
├── SECURITY.md
└── SUPPORT.md
├── fr
├── 01-Introduction-to-GitHub
│ └── README.md
├── 02-Introduction-to-GitHub-Codespaces
│ └── README.md
├── 03-Introduction-to-GitHub-Copilot
│ ├── README.md
│ └── steps
│ │ ├── 1-copilot-extension.md
│ │ ├── 2-skills-dotnet.md
│ │ ├── 3-copilot-hub.md
│ │ └── 4-copilot-comment.md
├── 04-Using-GitHub-Copilot-with-CSharp
│ └── README.md
├── 05-Creating-Mini-Game-with-GitHub-Copilot
│ ├── CODE_OF_CONDUCT.md
│ ├── LICENSE.md
│ ├── README.md
│ └── SECURITY.md
├── 06-Using-GitHub-Copilot-for-Azure-to-Deploy-to-Cloud
│ ├── 01-Getting-Started-with-GitHub-Copilot-for-Azure.md
│ ├── 02-Build-and-deploy-your-application-with-GitHub-Copilot-for-Azure.md
│ ├── 03-Get-Answers-to-your-Questions-about-Azure-Services-and-Resources.md
│ └── README.md
├── CODE_OF_CONDUCT.md
├── README.md
├── SECURITY.md
└── SUPPORT.md
├── ja
├── 01-Introduction-to-GitHub
│ └── README.md
├── 02-Introduction-to-GitHub-Codespaces
│ └── README.md
├── 03-Introduction-to-GitHub-Copilot
│ ├── README.md
│ └── steps
│ │ ├── 1-copilot-extension.md
│ │ ├── 2-skills-dotnet.md
│ │ ├── 3-copilot-hub.md
│ │ └── 4-copilot-comment.md
├── 04-Using-GitHub-Copilot-with-CSharp
│ └── README.md
├── 05-Creating-Mini-Game-with-GitHub-Copilot
│ ├── CODE_OF_CONDUCT.md
│ ├── LICENSE.md
│ ├── README.md
│ └── SECURITY.md
├── 06-Using-GitHub-Copilot-for-Azure-to-Deploy-to-Cloud
│ ├── 01-Getting-Started-with-GitHub-Copilot-for-Azure.md
│ ├── 02-Build-and-deploy-your-application-with-GitHub-Copilot-for-Azure.md
│ ├── 03-Get-Answers-to-your-Questions-about-Azure-Services-and-Resources.md
│ └── README.md
├── CODE_OF_CONDUCT.md
├── README.md
├── SECURITY.md
└── SUPPORT.md
├── ko
├── 01-Introduction-to-GitHub
│ └── README.md
├── 02-Introduction-to-GitHub-Codespaces
│ └── README.md
├── 03-Introduction-to-GitHub-Copilot
│ ├── README.md
│ └── steps
│ │ ├── 1-copilot-extension.md
│ │ ├── 2-skills-dotnet.md
│ │ ├── 3-copilot-hub.md
│ │ └── 4-copilot-comment.md
├── 04-Using-GitHub-Copilot-with-CSharp
│ └── README.md
├── 05-Creating-Mini-Game-with-GitHub-Copilot
│ ├── CODE_OF_CONDUCT.md
│ ├── LICENSE.md
│ ├── README.md
│ └── SECURITY.md
├── 06-Using-GitHub-Copilot-for-Azure-to-Deploy-to-Cloud
│ ├── 01-Getting-Started-with-GitHub-Copilot-for-Azure.md
│ ├── 02-Build-and-deploy-your-application-with-GitHub-Copilot-for-Azure.md
│ ├── 03-Get-Answers-to-your-Questions-about-Azure-Services-and-Resources.md
│ └── README.md
├── CODE_OF_CONDUCT.md
├── README.md
├── SECURITY.md
└── SUPPORT.md
├── pt
├── 01-Introduction-to-GitHub
│ └── README.md
├── 02-Introduction-to-GitHub-Codespaces
│ └── README.md
├── 03-Introduction-to-GitHub-Copilot
│ ├── README.md
│ └── steps
│ │ ├── 1-copilot-extension.md
│ │ ├── 2-skills-dotnet.md
│ │ ├── 3-copilot-hub.md
│ │ └── 4-copilot-comment.md
├── 04-Using-GitHub-Copilot-with-CSharp
│ └── README.md
├── 05-Creating-Mini-Game-with-GitHub-Copilot
│ ├── CODE_OF_CONDUCT.md
│ ├── LICENSE.md
│ ├── README.md
│ └── SECURITY.md
├── 06-Using-GitHub-Copilot-for-Azure-to-Deploy-to-Cloud
│ ├── 01-Getting-Started-with-GitHub-Copilot-for-Azure.md
│ ├── 02-Build-and-deploy-your-application-with-GitHub-Copilot-for-Azure.md
│ ├── 03-Get-Answers-to-your-Questions-about-Azure-Services-and-Resources.md
│ └── README.md
├── CODE_OF_CONDUCT.md
├── README.md
├── SECURITY.md
└── SUPPORT.md
├── tr
├── 01-Introduction-to-GitHub
│ └── README.md
├── 02-Introduction-to-GitHub-Codespaces
│ └── README.md
├── 03-Introduction-to-GitHub-Copilot
│ ├── README.md
│ └── steps
│ │ ├── 1-copilot-extension.md
│ │ ├── 2-skills-dotnet.md
│ │ ├── 3-copilot-hub.md
│ │ └── 4-copilot-comment.md
├── 04-Using-GitHub-Copilot-with-CSharp
│ └── README.md
├── 05-Creating-Mini-Game-with-GitHub-Copilot
│ ├── CODE_OF_CONDUCT.md
│ ├── LICENSE.md
│ ├── README.md
│ └── SECURITY.md
├── 06-Using-GitHub-Copilot-for-Azure-to-Deploy-to-Cloud
│ ├── 01-Getting-Started-with-GitHub-Copilot-for-Azure.md
│ ├── 02-Build-and-deploy-your-application-with-GitHub-Copilot-for-Azure.md
│ ├── 03-Get-Answers-to-your-Questions-about-Azure-Services-and-Resources.md
│ └── README.md
├── CODE_OF_CONDUCT.md
├── README.md
├── SECURITY.md
└── SUPPORT.md
├── tw
├── 01-Introduction-to-GitHub
│ └── README.md
├── 02-Introduction-to-GitHub-Codespaces
│ └── README.md
├── 03-Introduction-to-GitHub-Copilot
│ ├── README.md
│ └── steps
│ │ ├── 1-copilot-extension.md
│ │ ├── 2-skills-dotnet.md
│ │ ├── 3-copilot-hub.md
│ │ └── 4-copilot-comment.md
├── 04-Using-GitHub-Copilot-with-CSharp
│ └── README.md
├── 05-Creating-Mini-Game-with-GitHub-Copilot
│ ├── CODE_OF_CONDUCT.md
│ ├── LICENSE.md
│ ├── README.md
│ └── SECURITY.md
├── 06-Using-GitHub-Copilot-for-Azure-to-Deploy-to-Cloud
│ ├── 01-Getting-Started-with-GitHub-Copilot-for-Azure.md
│ ├── 02-Build-and-deploy-your-application-with-GitHub-Copilot-for-Azure.md
│ ├── 03-Get-Answers-to-your-Questions-about-Azure-Services-and-Resources.md
│ └── README.md
├── CODE_OF_CONDUCT.md
├── README.md
├── SECURITY.md
└── SUPPORT.md
├── vi
├── 01-Introduction-to-GitHub
│ └── README.md
├── 02-Introduction-to-GitHub-Codespaces
│ └── README.md
├── 03-Introduction-to-GitHub-Copilot
│ ├── README.md
│ └── steps
│ │ ├── 1-copilot-extension.md
│ │ ├── 2-skills-dotnet.md
│ │ ├── 3-copilot-hub.md
│ │ └── 4-copilot-comment.md
├── 04-Using-GitHub-Copilot-with-CSharp
│ └── README.md
├── 05-Creating-Mini-Game-with-GitHub-Copilot
│ ├── CODE_OF_CONDUCT.md
│ ├── LICENSE.md
│ ├── README.md
│ └── SECURITY.md
├── 06-Using-GitHub-Copilot-for-Azure-to-Deploy-to-Cloud
│ ├── 01-Getting-Started-with-GitHub-Copilot-for-Azure.md
│ ├── 02-Build-and-deploy-your-application-with-GitHub-Copilot-for-Azure.md
│ ├── 03-Get-Answers-to-your-Questions-about-Azure-Services-and-Resources.md
│ └── README.md
├── CODE_OF_CONDUCT.md
├── README.md
├── SECURITY.md
└── SUPPORT.md
└── zh
├── 01-Introduction-to-GitHub
└── README.md
├── 02-Introduction-to-GitHub-Codespaces
└── README.md
├── 03-Introduction-to-GitHub-Copilot
├── README.md
└── steps
│ ├── 1-copilot-extension.md
│ ├── 2-skills-dotnet.md
│ ├── 3-copilot-hub.md
│ └── 4-copilot-comment.md
├── 04-Using-GitHub-Copilot-with-CSharp
└── README.md
├── 05-Creating-Mini-Game-with-GitHub-Copilot
├── CODE_OF_CONDUCT.md
├── LICENSE.md
├── README.md
└── SECURITY.md
├── 06-Using-GitHub-Copilot-for-Azure-to-Deploy-to-Cloud
├── 01-Getting-Started-with-GitHub-Copilot-for-Azure.md
├── 02-Build-and-deploy-your-application-with-GitHub-Copilot-for-Azure.md
├── 03-Get-Answers-to-your-Questions-about-Azure-Services-and-Resources.md
└── README.md
├── CODE_OF_CONDUCT.md
├── README.md
├── SECURITY.md
└── SUPPORT.md
/.devcontainer/introduction/devcontainer.json:
--------------------------------------------------------------------------------
1 | {
2 | // Name this configuration
3 | "name": "Introduction to Copilot",
4 | // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
5 | "image": "mcr.microsoft.com/devcontainers/dotnet:9.0",
6 | "hostRequirements": {
7 | "cpus": 2
8 | },
9 | "customizations": {
10 | "vscode": {
11 | "extensions": [
12 | "github.copilot",
13 | "ms-dotnettools.csdevkit"
14 | ]
15 | }
16 | }
17 | }
--------------------------------------------------------------------------------
/.devcontainer/mini-game/devcontainer.json:
--------------------------------------------------------------------------------
1 | // For format details, see https://aka.ms/devcontainer.json. For config options, see the
2 | // README at: https://github.com/devcontainers/templates/tree/main/src/dotnet
3 | {
4 | "name": "GitHub Copilot Mini Game",
5 | // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
6 | "image": "mcr.microsoft.com/devcontainers/dotnet:9.0",
7 | "features": {
8 | "ghcr.io/devcontainers/features/powershell:1": {}
9 | },
10 | "hostRequirements": {
11 | "cpus": 2
12 | },
13 | "postCreateCommand": "sudo cp --force ./.devcontainer/welcome.txt",
14 | "customizations": {
15 | "vscode": {
16 | "extensions": [
17 | "github.copilot",
18 | "ms-azuretools.vscode-azure-github-copilot",
19 | "ms-dotnettools.csdevkit"
20 | ]}
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/.devcontainer/welcome:
--------------------------------------------------------------------------------
1 | Welcome to the Mastering Github Copilot for .NET / C# Developers lab.
2 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | ## Ignore Visual Studio temporary files, build results, and
2 | ## files generated by popular Visual Studio add-ons.
3 | ##
4 | ## Get latest from https://github.com/github/gitignore/blob/main/VisualStudio.gitignore
5 |
6 | # User-specific files
7 | *.rsuser
8 | *.suo
9 | *.user
10 | *.userosscache
11 | *.sln.docstates
12 |
13 | # User-specific files (MonoDevelop/Xamarin Studio)
14 | *.userprefs
15 |
16 | # Mono auto generated files
17 | mono_crash.*
18 |
19 | # Build results
20 | [Dd]ebug/
21 | [Dd]ebugPublic/
22 | [Rr]elease/
23 | [Rr]eleases/
24 | x64/
25 | x86/
26 | [Ww][Ii][Nn]32/
27 | [Aa][Rr][Mm]/
28 | [Aa][Rr][Mm]64/
29 | bld/
30 | [Bb]in/
31 | [Oo]bj/
32 | [Ll]og/
33 | [Ll]ogs/
34 |
35 | # Visual Studio 2015/2017 cache/options directory
36 | .vs/
37 |
38 | # Visual Studio 2017 auto generated files
39 | Generated\ Files/
40 |
41 | # MSTest test Results
42 | [Tt]est[Rr]esult*/
43 | [Bb]uild[Ll]og.*
44 |
45 | # .NET Core
46 | project.lock.json
47 | project.fragment.lock.json
48 | artifacts/
49 |
50 | # ASP.NET Scaffolding
51 | ScaffoldingReadMe.txt
52 |
53 | # Files built by Visual Studio
54 | *_i.c
55 | *_p.c
56 | *_h.h
57 | *.ilk
58 | *.meta
59 | *.obj
60 | *.iobj
61 | *.pch
62 | *.pdb
63 | *.ipdb
64 | *.pgc
65 | *.pgd
66 | *.rsp
67 | *.sbr
68 | *.tlb
69 | *.tli
70 | *.tlh
71 | *.tmp
72 | *.tmp_proj
73 | *_wpftmp.csproj
74 | *.log
75 | *.tlog
76 | *.vspscc
77 | *.vssscc
78 | .builds
79 | *.pidb
80 | *.svclog
81 | *.scc
82 |
83 | # Visual Studio profiler
84 | *.psess
85 | *.vsp
86 | *.vspx
87 | *.sap
88 |
89 | # Visual Studio Trace Files
90 | *.e2e
91 |
92 | # ReSharper is a .NET coding add-in
93 | _ReSharper*/
94 | *.[Rr]e[Ss]harper
95 | *.DotSettings.user
96 |
97 | # TeamCity is a build add-in
98 | _TeamCity*
99 |
100 | # DotCover is a Code Coverage Tool
101 | *.dotCover
102 |
103 | # AxoCover is a Code Coverage Tool
104 | .axoCover/*
105 | !.axoCover/settings.json
106 |
107 | # Coverlet is a free, cross platform Code Coverage Tool
108 | coverage*.json
109 | coverage*.xml
110 | coverage*.info
111 |
112 | # Visual Studio code coverage results
113 | *.coverage
114 | *.coveragexml
115 |
116 | # Click-Once directory
117 | publish/
118 |
119 | # NuGet Packages
120 | *.nupkg
121 | *.snupkg
122 | # The packages folder can be ignored because of Package Restore
123 | **/[Pp]ackages/*
124 | # except build/, which is used as an MSBuild target.
125 | !**/[Pp]ackages/build/
126 | # Uncomment if necessary however generally it will be regenerated when needed
127 | #!**/[Pp]ackages/repositories.config
128 | # NuGet v3's project.json files produces more ignorable files
129 | *.nuget.props
130 | *.nuget.targets
131 |
132 | # MAUI-specific
133 | *.apk
134 | *.aab
135 | *.msix
136 | *.appxupload
137 |
138 | # macOS
139 | .DS_Store
140 | .AppleDouble
141 | .LSOverride
142 | ._*
143 |
144 | # Windows
145 | Thumbs.db
146 | ehthumbs.db
147 | Desktop.ini
148 |
149 | .venv/
150 | .env
151 |
--------------------------------------------------------------------------------
/.vscode/settings.json:
--------------------------------------------------------------------------------
1 | {
2 | "dotnet.defaultSolution": "code/MasteringCopilot.sln"
3 | }
--------------------------------------------------------------------------------
/01-Introduction-to-GitHub/github 101 - Introduction.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/mastering-github-copilot-for-dotnet-csharp-developers/4b329f6bced4172132b1befc6819577924f7f4f9/01-Introduction-to-GitHub/github 101 - Introduction.pdf
--------------------------------------------------------------------------------
/02-Introduction-to-GitHub-Codespaces/github 101 - codespaces.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/mastering-github-copilot-for-dotnet-csharp-developers/4b329f6bced4172132b1befc6819577924f7f4f9/02-Introduction-to-GitHub-Codespaces/github 101 - codespaces.pdf
--------------------------------------------------------------------------------
/03-Introduction-to-GitHub-Copilot/GitHub 101- Copilot Intro.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/mastering-github-copilot-for-dotnet-csharp-developers/4b329f6bced4172132b1befc6819577924f7f4f9/03-Introduction-to-GitHub-Copilot/GitHub 101- Copilot Intro.pdf
--------------------------------------------------------------------------------
/03-Introduction-to-GitHub-Copilot/steps/1-copilot-extension.md:
--------------------------------------------------------------------------------
1 | ## Step 1: Leverage Codespaces with VS Code for Copilot
2 |
3 | _Welcome to "Develop With AI Powered Code Suggestions Using GitHub Copilot and VS Code"! :wave:_
4 |
5 | GitHub Copilot is an AI pair programmer that helps you write code faster and with less work. It draws context from comments and code to suggest individual lines and whole functions instantly. GitHub Copilot is powered by OpenAI Codex, a generative pretrained language model created by OpenAI.
6 |
7 | **Copilot works with many code editors including VS Code, Visual Studio, JetBrains IDE, and Neovim.**
8 |
9 | Additionally, GitHub Copilot is trained on all languages that appear in public repositories. For each language, the quality of suggestions you receive may depend on the volume and diversity of training data for that language.
10 |
11 | Using Copilot inside a Codespace shows just how easy it is to get up and running with GitHub's suite of [Collaborative Coding](https://github.com/features#features-collaboration) tools.
12 |
13 | > **Note**
14 | > This skills exercise will focus on leveraging GitHub Codespace. It is recommended that you complete the GitHub skill, [Codespaces](https://github.com/skills/code-with-codespaces), before moving forward with this exercise.
15 |
16 | ### ⌨️ Activity: Enable Copilot inside a Codespace
17 |
18 | [](https://codespaces.new/microsoft/mastering-github-copilot-for-dotnet-csharp-developers?devcontainer_path=.devcontainer%2Fintroduction%2Fdevcontainer.json)
19 |
20 | **We recommend opening another browser tab to work through the following activities so you can keep these instructions open for reference.**
21 |
22 | Before you open up a codespace on a repository, you can create a development container and define specific extensions or configurations that will be used or installed in your codespace. Let's create this development container and add copilot to the list of extensions.
23 |
24 | 1. Note in the body of the **.devcontainer/introduction/devcontainer.json** file, the following content:
25 | ```
26 | {
27 | // Name this configuration
28 | "name": "Introduction to Copilot",
29 | "customizations": {
30 | "vscode": {
31 | "extensions": [
32 | "GitHub.copilot",
33 | "ms-dotnettools.csdevkit"
34 | ]
35 | }
36 | }
37 | }
38 | ```
39 |
40 | If you run into issues at any time you can create a new codespace:
41 |
42 | 1. Navigate back to the home page of your repository by clicking the **Code** tab located at the top left of the screen.
43 | 1. Click the **Code** button located in the middle of the page.
44 | 1. Click the **Codespaces** tab on the box that pops up.
45 | 1. Click the **Create codespace on main** button and select Introduction to Copilot.
46 |
47 | **Wait about 2 minutes for the codespace to spin itself up.**
48 |
49 | 1. Verify your codespace is running. The browser should contain a VS Code web-based editor and a terminal should be present such as the below:
50 | 
51 | 1. The `copilot` extension should show up in the VS Code extension list. Click the extensions sidebar tab. You should see the following:
52 | 
53 |
54 | Head to [Part 2 of the Exercise](./2-skills-dotnet.md)
55 |
--------------------------------------------------------------------------------
/03-Introduction-to-GitHub-Copilot/steps/2-skills-dotnet.md:
--------------------------------------------------------------------------------
1 | ## Step 2: Seeing AI code suggestions in a C# file!
2 |
3 | _Nice work! :tada: You created a Codespace using a devcontainer file that installed Copilot!_
4 |
5 | GitHub Copilot provides suggestions for numerous languages and a wide variety of frameworks, but works especially well for Python, JavaScript, TypeScript, Ruby, Go, C# and C++. The following samples are in C#, but other languages will work similarly.
6 |
7 | Let's try this out utilizing C# for Copilot.
8 |
9 | > **Note**:
10 | > If you closed the Codespace from above, please open it back up or create a new Codespace.
11 |
12 | ### ⌨️ Activity: Add a C# file and start writing code
13 |
14 | > **Note**:
15 | > Make sure to open the **Solution Explorer** to see an organized view to easily add new projects and run them..
16 |
17 | 1. Create a new .NET project by using the `.NET: New Project...` command and selecting `Console App`.
18 | 1. Select the **code** folder and name the project **Skills**.
19 | 1. Open `Program.cs`
20 | 1. Verify your new file looks like:
21 | 
22 |
23 | 1. In the `Program.cs` file, remove any code and then type the following function header.
24 |
25 | ```csharp
26 | void CalculateNumbers(int var1, int var2)
27 | {
28 | ```
29 |
30 | GitHub Copilot will automatically suggest an entire function body in grayed text. Below is an example of what you'll most likely see, but the exact suggestion may vary.
31 | 
32 |
33 | 5. Press `Tab` to accept the suggestion.
34 |
35 | ### ⌨️ Activity: Push code to your repository from the codespace
36 |
37 | Let's use GitHub Copilot to summarize our changes and then commit the code.
38 |
39 | 1. Open the **Source Control** tab
40 | 2. Tap on the ✨ button in the **Message** entry for Copilot to generate your message.
41 |
42 | 
43 |
44 | 3. Click the **Commit** button.
45 |
46 |
47 | Head to [Part 3 of the Exercise](./3-copilot-hub.md)
48 |
--------------------------------------------------------------------------------
/03-Introduction-to-GitHub-Copilot/steps/3-copilot-hub.md:
--------------------------------------------------------------------------------
1 | ## Step 3: View the GitHub Copilot tab with multiple suggestions
2 |
3 | _Nice work! You just used AI code suggestions within a C# file by using GitHub Copilot :sparkles:_
4 |
5 | Keep in mind that as you continue to use copilot, you may not want some of the suggestions GitHub Copilot offers. GitHub Copilot will show you multiple suggestions in a new tab.
6 |
7 | ### ⌨️ Activity: Add another C# method and view all suggestions
8 |
9 | 1. From inside the codespace in the Solution Explorer, right click on the project, create a new file.
10 |
11 | > Note: If you closed the Codespace from above please open it back up or create a new Codespace.
12 |
13 | 2. Select **Class** and name the file `Members.cs`
14 | 3. In the `Members.cs` file, type the following function inside of the `Member` class.
15 | ```
16 | public strin
17 | ```
18 | 4. Stop typing and view the Copilot suggestion by hovering over end the red squiggly grat text and select the `...`
19 | 5. Click `Open Completions Panel`.
20 |
21 | > **Note**
22 | > If you don't see the copilot code block suggestion or the red squiggly and the three dots `...`, you can type `control + enter` to bring up the GitHub Copilot completions panel.
23 |
24 | 6. Copilot will synthesize around 10 different code suggestions or press CTRL+Enter. You should see something like this:
25 | 
26 | 7. Find a solution you like and click `Accept Solution`.
27 | 8. Your `Member.cs` file will be updated with your solution.
28 |
29 | ### ⌨️ Activity: Push code to your repository from the codespace
30 |
31 | Let's use GitHub Copilot to summarize our changes and then commit the code.
32 |
33 | 1. Open the **Source Control** tab
34 | 2. Tap on the ✨ button in the **Message** entry for Copilot to generate your message.
35 |
36 | 
37 |
38 | 3. Click the **Commit** button.
39 |
40 |
41 | Head to [Part 4 of the Exercise](./4-copilot-comment.md)
42 |
--------------------------------------------------------------------------------
/03-Introduction-to-GitHub-Copilot/steps/4-copilot-comment.md:
--------------------------------------------------------------------------------
1 | ## Step 4: Using comments to generate code with Copilot
2 |
3 | _Nicely done utilizing the Copilot tab!_ :partying_face:
4 |
5 | You now have leveraged the Copilot quick tab auto-suggest as well as the Copilot hub to accept AI generated suggestions.
6 |
7 | Now lets see how you can leverage comments to generate Copilot suggestions!
8 |
9 | ### ⌨️ Activity: Generate Copilot suggested code from comments.
10 |
11 | 1. From inside the codespace in the Solution Explorer, right click on the project, create a new file.
12 |
13 | > Note: If you closed the Codespace from above please open it back up or create a new Codespace.
14 |
15 | 2. Select **Class** and name the file `Comments.cs`
16 | 3. Type the following comment into the file inside of the **Comments** class:
17 | ```
18 | // create a method that generates a comment for a given skill
19 | ```
20 | 4. Press `enter` to go to a new line.
21 | 5. Copilot will suggest a code block.
22 | 6. Hover over the red squiggly and select the `...`
23 |
24 | > **Note**
25 | > If you don't see the copilot code block suggestion or the red squiggly and the three dots `...`, you can type `control + enter` to bring up the GitHub Copilot completions panel.
26 |
27 | 7. Click `Open Completions Panel`. Copilot will synthesise around 10 different code suggestions. You should see something like this:
28 | 
29 | 8. Find a solution you like and click `Accept Solution`.
30 | 9. Your `Comments.cs` file will be updated with your solution.
31 |
32 | ### ⌨️ Activity: Push code to your repository from the codespace
33 |
34 | Let's use GitHub Copilot to summarize our changes and then commit the code.
35 |
36 | 1. Open the **Source Control** tab
37 | 2. Tap on the ✨ button in the **Message** entry for Copilot to generate your message.
38 |
39 | 
40 |
41 | 3. Click the **Commit** button.
42 |
43 | Head to [Exercise 4 - Using GitHub Copilot with C#](../../04-Using-GitHub-Copilot-with-CSharp/README.md)
--------------------------------------------------------------------------------
/03-Introduction-to-GitHub-Copilot/steps/img/1-skills-0.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/mastering-github-copilot-for-dotnet-csharp-developers/4b329f6bced4172132b1befc6819577924f7f4f9/03-Introduction-to-GitHub-Copilot/steps/img/1-skills-0.png
--------------------------------------------------------------------------------
/03-Introduction-to-GitHub-Copilot/steps/img/1-skills-1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/mastering-github-copilot-for-dotnet-csharp-developers/4b329f6bced4172132b1befc6819577924f7f4f9/03-Introduction-to-GitHub-Copilot/steps/img/1-skills-1.png
--------------------------------------------------------------------------------
/03-Introduction-to-GitHub-Copilot/steps/img/2-skills-commit.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/mastering-github-copilot-for-dotnet-csharp-developers/4b329f6bced4172132b1befc6819577924f7f4f9/03-Introduction-to-GitHub-Copilot/steps/img/2-skills-commit.png
--------------------------------------------------------------------------------
/03-Introduction-to-GitHub-Copilot/steps/img/2-skills-dotnet-0.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/mastering-github-copilot-for-dotnet-csharp-developers/4b329f6bced4172132b1befc6819577924f7f4f9/03-Introduction-to-GitHub-Copilot/steps/img/2-skills-dotnet-0.png
--------------------------------------------------------------------------------
/03-Introduction-to-GitHub-Copilot/steps/img/2-skills-dotnet-1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/mastering-github-copilot-for-dotnet-csharp-developers/4b329f6bced4172132b1befc6819577924f7f4f9/03-Introduction-to-GitHub-Copilot/steps/img/2-skills-dotnet-1.png
--------------------------------------------------------------------------------
/03-Introduction-to-GitHub-Copilot/steps/img/3-copilot-hub-0.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/mastering-github-copilot-for-dotnet-csharp-developers/4b329f6bced4172132b1befc6819577924f7f4f9/03-Introduction-to-GitHub-Copilot/steps/img/3-copilot-hub-0.png
--------------------------------------------------------------------------------
/03-Introduction-to-GitHub-Copilot/steps/img/4-copilot-comment-0.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/mastering-github-copilot-for-dotnet-csharp-developers/4b329f6bced4172132b1befc6819577924f7f4f9/03-Introduction-to-GitHub-Copilot/steps/img/4-copilot-comment-0.png
--------------------------------------------------------------------------------
/04-Using-GitHub-Copilot-with-CSharp/images/004AskCopilotAboutProject.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/mastering-github-copilot-for-dotnet-csharp-developers/4b329f6bced4172132b1befc6819577924f7f4f9/04-Using-GitHub-Copilot-with-CSharp/images/004AskCopilotAboutProject.png
--------------------------------------------------------------------------------
/04-Using-GitHub-Copilot-with-CSharp/images/005OpenRepoInCodeSpaces.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/mastering-github-copilot-for-dotnet-csharp-developers/4b329f6bced4172132b1befc6819577924f7f4f9/04-Using-GitHub-Copilot-with-CSharp/images/005OpenRepoInCodeSpaces.png
--------------------------------------------------------------------------------
/04-Using-GitHub-Copilot-with-CSharp/images/006RunBackEndProject.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/mastering-github-copilot-for-dotnet-csharp-developers/4b329f6bced4172132b1befc6819577924f7f4f9/04-Using-GitHub-Copilot-with-CSharp/images/006RunBackEndProject.png
--------------------------------------------------------------------------------
/04-Using-GitHub-Copilot-with-CSharp/images/007ProjectRunningOpenInNewTab.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/mastering-github-copilot-for-dotnet-csharp-developers/4b329f6bced4172132b1befc6819577924f7f4f9/04-Using-GitHub-Copilot-with-CSharp/images/007ProjectRunningOpenInNewTab.png
--------------------------------------------------------------------------------
/04-Using-GitHub-Copilot-with-CSharp/images/008TestRunningApi.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/mastering-github-copilot-for-dotnet-csharp-developers/4b329f6bced4172132b1befc6819577924f7f4f9/04-Using-GitHub-Copilot-with-CSharp/images/008TestRunningApi.png
--------------------------------------------------------------------------------
/04-Using-GitHub-Copilot-with-CSharp/images/009DebugBackEndDemo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/mastering-github-copilot-for-dotnet-csharp-developers/4b329f6bced4172132b1befc6819577924f7f4f9/04-Using-GitHub-Copilot-with-CSharp/images/009DebugBackEndDemo.png
--------------------------------------------------------------------------------
/04-Using-GitHub-Copilot-with-CSharp/images/010DebugForecastValue.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/mastering-github-copilot-for-dotnet-csharp-developers/4b329f6bced4172132b1befc6819577924f7f4f9/04-Using-GitHub-Copilot-with-CSharp/images/010DebugForecastValue.png
--------------------------------------------------------------------------------
/04-Using-GitHub-Copilot-with-CSharp/images/011OpenBackEndProject.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/mastering-github-copilot-for-dotnet-csharp-developers/4b329f6bced4172132b1befc6819577924f7f4f9/04-Using-GitHub-Copilot-with-CSharp/images/011OpenBackEndProject.png
--------------------------------------------------------------------------------
/04-Using-GitHub-Copilot-with-CSharp/images/011SlashCommandExplain.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/mastering-github-copilot-for-dotnet-csharp-developers/4b329f6bced4172132b1befc6819577924f7f4f9/04-Using-GitHub-Copilot-with-CSharp/images/011SlashCommandExplain.gif
--------------------------------------------------------------------------------
/04-Using-GitHub-Copilot-with-CSharp/images/012SlashCmdTests.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/mastering-github-copilot-for-dotnet-csharp-developers/4b329f6bced4172132b1befc6819577924f7f4f9/04-Using-GitHub-Copilot-with-CSharp/images/012SlashCmdTests.gif
--------------------------------------------------------------------------------
/04-Using-GitHub-Copilot-with-CSharp/images/013SlashCmdDoc.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/mastering-github-copilot-for-dotnet-csharp-developers/4b329f6bced4172132b1befc6819577924f7f4f9/04-Using-GitHub-Copilot-with-CSharp/images/013SlashCmdDoc.gif
--------------------------------------------------------------------------------
/04-Using-GitHub-Copilot-with-CSharp/images/014AddNewRecord.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/mastering-github-copilot-for-dotnet-csharp-developers/4b329f6bced4172132b1befc6819577924f7f4f9/04-Using-GitHub-Copilot-with-CSharp/images/014AddNewRecord.gif
--------------------------------------------------------------------------------
/04-Using-GitHub-Copilot-with-CSharp/images/020GeneratedCode.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/mastering-github-copilot-for-dotnet-csharp-developers/4b329f6bced4172132b1befc6819577924f7f4f9/04-Using-GitHub-Copilot-with-CSharp/images/020GeneratedCode.gif
--------------------------------------------------------------------------------
/04-Using-GitHub-Copilot-with-CSharp/images/030RunAndDebugTheBackEndProject.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/mastering-github-copilot-for-dotnet-csharp-developers/4b329f6bced4172132b1befc6819577924f7f4f9/04-Using-GitHub-Copilot-with-CSharp/images/030RunAndDebugTheBackEndProject.png
--------------------------------------------------------------------------------
/04-Using-GitHub-Copilot-with-CSharp/images/032TestAndDebugUsingUrls.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/mastering-github-copilot-for-dotnet-csharp-developers/4b329f6bced4172132b1befc6819577924f7f4f9/04-Using-GitHub-Copilot-with-CSharp/images/032TestAndDebugUsingUrls.png
--------------------------------------------------------------------------------
/04-Using-GitHub-Copilot-with-CSharp/images/OpenEditsWindows.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/mastering-github-copilot-for-dotnet-csharp-developers/4b329f6bced4172132b1befc6819577924f7f4f9/04-Using-GitHub-Copilot-with-CSharp/images/OpenEditsWindows.png
--------------------------------------------------------------------------------
/04-Using-GitHub-Copilot-with-CSharp/images/WeatherWithEdits.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/mastering-github-copilot-for-dotnet-csharp-developers/4b329f6bced4172132b1befc6819577924f7f4f9/04-Using-GitHub-Copilot-with-CSharp/images/WeatherWithEdits.png
--------------------------------------------------------------------------------
/05-Creating-Mini-Game-with-GitHub-Copilot/CODE_OF_CONDUCT.md:
--------------------------------------------------------------------------------
1 | # Microsoft Open Source Code of Conduct
2 |
3 | This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).
4 |
5 | Resources:
6 |
7 | - [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/)
8 | - [Microsoft Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/)
9 | - Contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with questions or concerns
10 |
--------------------------------------------------------------------------------
/05-Creating-Mini-Game-with-GitHub-Copilot/SECURITY.md:
--------------------------------------------------------------------------------
1 |
2 |
3 | ## Security
4 |
5 | Microsoft takes the security of our software products and services seriously, which includes all source code repositories managed through our GitHub organizations, which include [Microsoft](https://github.com/Microsoft), [Azure](https://github.com/Azure), [DotNet](https://github.com/dotnet), [AspNet](https://github.com/aspnet) and [Xamarin](https://github.com/xamarin).
6 |
7 | If you believe you have found a security vulnerability in any Microsoft-owned repository that meets [Microsoft's definition of a security vulnerability](https://aka.ms/security.md/definition), please report it to us as described below.
8 |
9 | ## Reporting Security Issues
10 |
11 | **Please do not report security vulnerabilities through public GitHub issues.**
12 |
13 | Instead, please report them to the Microsoft Security Response Center (MSRC) at [https://msrc.microsoft.com/create-report](https://aka.ms/security.md/msrc/create-report).
14 |
15 | If you prefer to submit without logging in, send email to [secure@microsoft.com](mailto:secure@microsoft.com). If possible, encrypt your message with our PGP key; please download it from the [Microsoft Security Response Center PGP Key page](https://aka.ms/security.md/msrc/pgp).
16 |
17 | You should receive a response within 24 hours. If for some reason you do not, please follow up via email to ensure we received your original message. Additional information can be found at [microsoft.com/msrc](https://www.microsoft.com/msrc).
18 |
19 | Please include the requested information listed below (as much as you can provide) to help us better understand the nature and scope of the possible issue:
20 |
21 | * Type of issue (e.g. buffer overflow, SQL injection, cross-site scripting, etc.)
22 | * Full paths of source file(s) related to the manifestation of the issue
23 | * The location of the affected source code (tag/branch/commit or direct URL)
24 | * Any special configuration required to reproduce the issue
25 | * Step-by-step instructions to reproduce the issue
26 | * Proof-of-concept or exploit code (if possible)
27 | * Impact of the issue, including how an attacker might exploit the issue
28 |
29 | This information will help us triage your report more quickly.
30 |
31 | If you are reporting for a bug bounty, more complete reports can contribute to a higher bounty award. Please visit our [Microsoft Bug Bounty Program](https://aka.ms/security.md/msrc/bounty) page for more details about our active programs.
32 |
33 | ## Preferred Languages
34 |
35 | We prefer all communications to be in English.
36 |
37 | ## Policy
38 |
39 | Microsoft follows the principle of [Coordinated Vulnerability Disclosure](https://aka.ms/security.md/cvd).
40 |
41 |
42 |
--------------------------------------------------------------------------------
/05-Creating-Mini-Game-with-GitHub-Copilot/images/06-Creating-Mini-Game-with-GitHub-Copilot-001.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/mastering-github-copilot-for-dotnet-csharp-developers/4b329f6bced4172132b1befc6819577924f7f4f9/05-Creating-Mini-Game-with-GitHub-Copilot/images/06-Creating-Mini-Game-with-GitHub-Copilot-001.png
--------------------------------------------------------------------------------
/05-Creating-Mini-Game-with-GitHub-Copilot/images/06-Creating-Mini-Game-with-GitHub-Copilot-002.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/mastering-github-copilot-for-dotnet-csharp-developers/4b329f6bced4172132b1befc6819577924f7f4f9/05-Creating-Mini-Game-with-GitHub-Copilot/images/06-Creating-Mini-Game-with-GitHub-Copilot-002.png
--------------------------------------------------------------------------------
/05-Creating-Mini-Game-with-GitHub-Copilot/images/06-Creating-Mini-Game-with-GitHub-Copilot-003.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/mastering-github-copilot-for-dotnet-csharp-developers/4b329f6bced4172132b1befc6819577924f7f4f9/05-Creating-Mini-Game-with-GitHub-Copilot/images/06-Creating-Mini-Game-with-GitHub-Copilot-003.png
--------------------------------------------------------------------------------
/05-Creating-Mini-Game-with-GitHub-Copilot/images/requirements.txt:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/06-Using-GitHub-Copilot-for-Azure-to-Deploy-to-Cloud/images/mod2-CopilotChat-2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/mastering-github-copilot-for-dotnet-csharp-developers/4b329f6bced4172132b1befc6819577924f7f4f9/06-Using-GitHub-Copilot-for-Azure-to-Deploy-to-Cloud/images/mod2-CopilotChat-2.png
--------------------------------------------------------------------------------
/06-Using-GitHub-Copilot-for-Azure-to-Deploy-to-Cloud/images/mod2-CopilotChat-3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/mastering-github-copilot-for-dotnet-csharp-developers/4b329f6bced4172132b1befc6819577924f7f4f9/06-Using-GitHub-Copilot-for-Azure-to-Deploy-to-Cloud/images/mod2-CopilotChat-3.png
--------------------------------------------------------------------------------
/06-Using-GitHub-Copilot-for-Azure-to-Deploy-to-Cloud/images/mod2-CopilotChat-4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/mastering-github-copilot-for-dotnet-csharp-developers/4b329f6bced4172132b1befc6819577924f7f4f9/06-Using-GitHub-Copilot-for-Azure-to-Deploy-to-Cloud/images/mod2-CopilotChat-4.png
--------------------------------------------------------------------------------
/06-Using-GitHub-Copilot-for-Azure-to-Deploy-to-Cloud/images/mod2-CopilotChat-5.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/mastering-github-copilot-for-dotnet-csharp-developers/4b329f6bced4172132b1befc6819577924f7f4f9/06-Using-GitHub-Copilot-for-Azure-to-Deploy-to-Cloud/images/mod2-CopilotChat-5.png
--------------------------------------------------------------------------------
/06-Using-GitHub-Copilot-for-Azure-to-Deploy-to-Cloud/images/mod2-CopilotChat-6.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/mastering-github-copilot-for-dotnet-csharp-developers/4b329f6bced4172132b1befc6819577924f7f4f9/06-Using-GitHub-Copilot-for-Azure-to-Deploy-to-Cloud/images/mod2-CopilotChat-6.png
--------------------------------------------------------------------------------
/06-Using-GitHub-Copilot-for-Azure-to-Deploy-to-Cloud/images/mod2-CopilotChat-7.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/mastering-github-copilot-for-dotnet-csharp-developers/4b329f6bced4172132b1befc6819577924f7f4f9/06-Using-GitHub-Copilot-for-Azure-to-Deploy-to-Cloud/images/mod2-CopilotChat-7.png
--------------------------------------------------------------------------------
/06-Using-GitHub-Copilot-for-Azure-to-Deploy-to-Cloud/images/mod2-CopilotChat-8.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/mastering-github-copilot-for-dotnet-csharp-developers/4b329f6bced4172132b1befc6819577924f7f4f9/06-Using-GitHub-Copilot-for-Azure-to-Deploy-to-Cloud/images/mod2-CopilotChat-8.png
--------------------------------------------------------------------------------
/06-Using-GitHub-Copilot-for-Azure-to-Deploy-to-Cloud/images/mod2-CopilotChat-9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/mastering-github-copilot-for-dotnet-csharp-developers/4b329f6bced4172132b1befc6819577924f7f4f9/06-Using-GitHub-Copilot-for-Azure-to-Deploy-to-Cloud/images/mod2-CopilotChat-9.png
--------------------------------------------------------------------------------
/06-Using-GitHub-Copilot-for-Azure-to-Deploy-to-Cloud/images/mod2-CopilotChat.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/mastering-github-copilot-for-dotnet-csharp-developers/4b329f6bced4172132b1befc6819577924f7f4f9/06-Using-GitHub-Copilot-for-Azure-to-Deploy-to-Cloud/images/mod2-CopilotChat.png
--------------------------------------------------------------------------------
/06-Using-GitHub-Copilot-for-Azure-to-Deploy-to-Cloud/images/mod3-prompt-example.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/mastering-github-copilot-for-dotnet-csharp-developers/4b329f6bced4172132b1befc6819577924f7f4f9/06-Using-GitHub-Copilot-for-Azure-to-Deploy-to-Cloud/images/mod3-prompt-example.png
--------------------------------------------------------------------------------
/CODE_OF_CONDUCT.md:
--------------------------------------------------------------------------------
1 | # Microsoft Open Source Code of Conduct
2 |
3 | This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).
4 |
5 | Resources:
6 |
7 | - [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/)
8 | - [Microsoft Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/)
9 | - Contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with questions or concerns
10 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) Microsoft Corporation.
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE
22 |
--------------------------------------------------------------------------------
/SECURITY.md:
--------------------------------------------------------------------------------
1 |
2 |
3 | ## Security
4 |
5 | Microsoft takes the security of our software products and services seriously, which includes all source code repositories managed through our GitHub organizations, which include [Microsoft](https://github.com/Microsoft), [Azure](https://github.com/Azure), [DotNet](https://github.com/dotnet), [AspNet](https://github.com/aspnet) and [Xamarin](https://github.com/xamarin).
6 |
7 | If you believe you have found a security vulnerability in any Microsoft-owned repository that meets [Microsoft's definition of a security vulnerability](https://aka.ms/security.md/definition), please report it to us as described below.
8 |
9 | ## Reporting Security Issues
10 |
11 | **Please do not report security vulnerabilities through public GitHub issues.**
12 |
13 | Instead, please report them to the Microsoft Security Response Center (MSRC) at [https://msrc.microsoft.com/create-report](https://aka.ms/security.md/msrc/create-report).
14 |
15 | If you prefer to submit without logging in, send email to [secure@microsoft.com](mailto:secure@microsoft.com). If possible, encrypt your message with our PGP key; please download it from the [Microsoft Security Response Center PGP Key page](https://aka.ms/security.md/msrc/pgp).
16 |
17 | You should receive a response within 24 hours. If for some reason you do not, please follow up via email to ensure we received your original message. Additional information can be found at [microsoft.com/msrc](https://www.microsoft.com/msrc).
18 |
19 | Please include the requested information listed below (as much as you can provide) to help us better understand the nature and scope of the possible issue:
20 |
21 | * Type of issue (e.g. buffer overflow, SQL injection, cross-site scripting, etc.)
22 | * Full paths of source file(s) related to the manifestation of the issue
23 | * The location of the affected source code (tag/branch/commit or direct URL)
24 | * Any special configuration required to reproduce the issue
25 | * Step-by-step instructions to reproduce the issue
26 | * Proof-of-concept or exploit code (if possible)
27 | * Impact of the issue, including how an attacker might exploit the issue
28 |
29 | This information will help us triage your report more quickly.
30 |
31 | If you are reporting for a bug bounty, more complete reports can contribute to a higher bounty award. Please visit our [Microsoft Bug Bounty Program](https://aka.ms/security.md/msrc/bounty) page for more details about our active programs.
32 |
33 | ## Preferred Languages
34 |
35 | We prefer all communications to be in English.
36 |
37 | ## Policy
38 |
39 | Microsoft follows the principle of [Coordinated Vulnerability Disclosure](https://aka.ms/security.md/cvd).
40 |
41 |
42 |
--------------------------------------------------------------------------------
/SUPPORT.md:
--------------------------------------------------------------------------------
1 | # TODO: The maintainer of this repo has not yet edited this file
2 |
3 | **REPO OWNER**: Do you want Customer Service & Support (CSS) support for this product/project?
4 |
5 | - **No CSS support:** Fill out this template with information about how to file issues and get help.
6 | - **Yes CSS support:** Fill out an intake form at [aka.ms/onboardsupport](https://aka.ms/onboardsupport). CSS will work with/help you to determine next steps.
7 | - **Not sure?** Fill out an intake as though the answer were "Yes". CSS will help you decide.
8 |
9 | *Then remove this first heading from this SUPPORT.MD file before publishing your repo.*
10 |
11 | # Support
12 |
13 | ## How to file issues and get help
14 |
15 | This project uses GitHub Issues to track bugs and feature requests. Please search the existing
16 | issues before filing new issues to avoid duplicates. For new issues, file your bug or
17 | feature request as a new Issue.
18 |
19 | For help and questions about using this project, please **REPO MAINTAINER: INSERT INSTRUCTIONS HERE
20 | FOR HOW TO ENGAGE REPO OWNERS OR COMMUNITY FOR HELP. COULD BE A STACK OVERFLOW TAG OR OTHER
21 | CHANNEL. WHERE WILL YOU HELP PEOPLE?**.
22 |
23 | ## Microsoft Support Policy
24 |
25 | Support for this **PROJECT or PRODUCT** is limited to the resources listed above.
26 |
--------------------------------------------------------------------------------
/code/MasteringCopilot.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio Version 17
4 | VisualStudioVersion = 17.0.31903.59
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MiniGame", "MiniGame\MiniGame.csproj", "{ED8CF238-896C-4DD4-89B7-B9FF7232A3FE}"
7 | EndProject
8 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Skills", "Skills\Skills.csproj", "{EB144C64-CA7A-487E-B540-9D7A9AB4306C}"
9 | EndProject
10 | Global
11 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
12 | Debug|Any CPU = Debug|Any CPU
13 | Debug|x64 = Debug|x64
14 | Debug|x86 = Debug|x86
15 | Release|Any CPU = Release|Any CPU
16 | Release|x64 = Release|x64
17 | Release|x86 = Release|x86
18 | EndGlobalSection
19 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
20 | {ED8CF238-896C-4DD4-89B7-B9FF7232A3FE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
21 | {ED8CF238-896C-4DD4-89B7-B9FF7232A3FE}.Debug|Any CPU.Build.0 = Debug|Any CPU
22 | {ED8CF238-896C-4DD4-89B7-B9FF7232A3FE}.Debug|x64.ActiveCfg = Debug|Any CPU
23 | {ED8CF238-896C-4DD4-89B7-B9FF7232A3FE}.Debug|x64.Build.0 = Debug|Any CPU
24 | {ED8CF238-896C-4DD4-89B7-B9FF7232A3FE}.Debug|x86.ActiveCfg = Debug|Any CPU
25 | {ED8CF238-896C-4DD4-89B7-B9FF7232A3FE}.Debug|x86.Build.0 = Debug|Any CPU
26 | {ED8CF238-896C-4DD4-89B7-B9FF7232A3FE}.Release|Any CPU.ActiveCfg = Release|Any CPU
27 | {ED8CF238-896C-4DD4-89B7-B9FF7232A3FE}.Release|Any CPU.Build.0 = Release|Any CPU
28 | {ED8CF238-896C-4DD4-89B7-B9FF7232A3FE}.Release|x64.ActiveCfg = Release|Any CPU
29 | {ED8CF238-896C-4DD4-89B7-B9FF7232A3FE}.Release|x64.Build.0 = Release|Any CPU
30 | {ED8CF238-896C-4DD4-89B7-B9FF7232A3FE}.Release|x86.ActiveCfg = Release|Any CPU
31 | {ED8CF238-896C-4DD4-89B7-B9FF7232A3FE}.Release|x86.Build.0 = Release|Any CPU
32 | {EB144C64-CA7A-487E-B540-9D7A9AB4306C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
33 | {EB144C64-CA7A-487E-B540-9D7A9AB4306C}.Debug|Any CPU.Build.0 = Debug|Any CPU
34 | {EB144C64-CA7A-487E-B540-9D7A9AB4306C}.Debug|x64.ActiveCfg = Debug|Any CPU
35 | {EB144C64-CA7A-487E-B540-9D7A9AB4306C}.Debug|x64.Build.0 = Debug|Any CPU
36 | {EB144C64-CA7A-487E-B540-9D7A9AB4306C}.Debug|x86.ActiveCfg = Debug|Any CPU
37 | {EB144C64-CA7A-487E-B540-9D7A9AB4306C}.Debug|x86.Build.0 = Debug|Any CPU
38 | {EB144C64-CA7A-487E-B540-9D7A9AB4306C}.Release|Any CPU.ActiveCfg = Release|Any CPU
39 | {EB144C64-CA7A-487E-B540-9D7A9AB4306C}.Release|Any CPU.Build.0 = Release|Any CPU
40 | {EB144C64-CA7A-487E-B540-9D7A9AB4306C}.Release|x64.ActiveCfg = Release|Any CPU
41 | {EB144C64-CA7A-487E-B540-9D7A9AB4306C}.Release|x64.Build.0 = Release|Any CPU
42 | {EB144C64-CA7A-487E-B540-9D7A9AB4306C}.Release|x86.ActiveCfg = Release|Any CPU
43 | {EB144C64-CA7A-487E-B540-9D7A9AB4306C}.Release|x86.Build.0 = Release|Any CPU
44 | EndGlobalSection
45 | GlobalSection(SolutionProperties) = preSolution
46 | HideSolutionNode = FALSE
47 | EndGlobalSection
48 | EndGlobal
49 |
--------------------------------------------------------------------------------
/code/MiniGame/MiniGame.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Exe
5 | net9.0
6 | enable
7 | enable
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/code/MiniGame/Program.cs:
--------------------------------------------------------------------------------
1 | // See https://aka.ms/new-console-template for more information
2 | Console.WriteLine("Ready to build a mini game with .NET/C# with help from GitHub Copilot?");
3 |
--------------------------------------------------------------------------------
/images/GitHub 101 - Curriculum dotnet.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/mastering-github-copilot-for-dotnet-csharp-developers/4b329f6bced4172132b1befc6819577924f7f4f9/images/GitHub 101 - Curriculum dotnet.png
--------------------------------------------------------------------------------
/slides/Let's Learn .NET - GitHub Copilot.pptx:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/mastering-github-copilot-for-dotnet-csharp-developers/4b329f6bced4172132b1befc6819577924f7f4f9/slides/Let's Learn .NET - GitHub Copilot.pptx
--------------------------------------------------------------------------------
/slides/Let's Learn .NET - GitHub Copilot_francais.pptx:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/mastering-github-copilot-for-dotnet-csharp-developers/4b329f6bced4172132b1befc6819577924f7f4f9/slides/Let's Learn .NET - GitHub Copilot_francais.pptx
--------------------------------------------------------------------------------
/translations/es/03-Introduction-to-GitHub-Copilot/steps/2-skills-dotnet.md:
--------------------------------------------------------------------------------
1 | ## Paso 2: ¡Ver sugerencias de código de AI en un archivo C#!
2 |
3 | _¡Buen trabajo! :tada: Creaste un Codespace utilizando un archivo devcontainer que instaló Copilot._
4 |
5 | GitHub Copilot ofrece sugerencias para numerosos lenguajes y una amplia variedad de frameworks, pero funciona especialmente bien con Python, JavaScript, TypeScript, Ruby, Go, C# y C++. Los siguientes ejemplos están en C#, pero otros lenguajes funcionarán de manera similar.
6 |
7 | Probemos esto utilizando C# con Copilot.
8 |
9 | > **Nota**:
10 | > Si cerraste el Codespace anterior, por favor vuelve a abrirlo o crea uno nuevo.
11 |
12 | ### ⌨️ Actividad: Agregar un archivo C# y comenzar a escribir código
13 |
14 | > **Nota**:
15 | > Asegúrate de abrir el **Explorador de Soluciones** para ver una vista organizada que te permita agregar nuevos proyectos y ejecutarlos fácilmente.
16 |
17 | 1. Crea un nuevo proyecto .NET usando el comando `.NET: New Project...` y seleccionando `Console App`.
18 | 1. Selecciona la carpeta **code** y nombra el proyecto **Skills**.
19 | 1. Abre `Program.cs`.
20 | 1. Verifica que tu nuevo archivo se vea así:
21 | 
22 |
23 | 1. En el archivo `Program.cs`, elimina cualquier código y escribe el siguiente encabezado de función.
24 |
25 | ```csharp
26 | void CalculateNumbers(int var1, int var2)
27 | {
28 | ```
29 |
30 | GitHub Copilot sugerirá automáticamente el cuerpo completo de la función en texto gris. A continuación, se muestra un ejemplo de lo que probablemente verás, aunque la sugerencia exacta puede variar.
31 | 
32 |
33 | 5. Presiona `Tab` para aceptar la sugerencia.
34 |
35 | ### ⌨️ Actividad: Subir el código a tu repositorio desde el Codespace
36 |
37 | Utilicemos GitHub Copilot para resumir nuestros cambios y luego confirmar el código.
38 |
39 | 1. Abre la pestaña **Control de Código Fuente**.
40 | 2. Haz clic en el botón ✨ en el campo **Message** para que Copilot genere tu mensaje.
41 |
42 | 
43 |
44 | 3. Haz clic en el botón **Commit**.
45 |
46 | Dirígete a [Parte 3 del Ejercicio](./3-copilot-hub.md)
47 |
48 | **Descargo de responsabilidad**:
49 | Este documento ha sido traducido utilizando servicios de traducción automática basados en inteligencia artificial. Si bien nos esforzamos por lograr precisión, tenga en cuenta que las traducciones automatizadas pueden contener errores o inexactitudes. El documento original en su idioma nativo debe considerarse como la fuente autorizada. Para información crítica, se recomienda una traducción profesional realizada por humanos. No nos hacemos responsables de malentendidos o interpretaciones erróneas que surjan del uso de esta traducción.
--------------------------------------------------------------------------------
/translations/es/03-Introduction-to-GitHub-Copilot/steps/3-copilot-hub.md:
--------------------------------------------------------------------------------
1 | ## Paso 3: Ver la pestaña de GitHub Copilot con múltiples sugerencias
2 |
3 | _¡Buen trabajo! Acabas de usar sugerencias de código generadas por IA dentro de un archivo C# utilizando GitHub Copilot :sparkles:_
4 |
5 | Ten en cuenta que, a medida que sigas utilizando Copilot, puede que no desees algunas de las sugerencias que ofrece. GitHub Copilot te mostrará múltiples sugerencias en una nueva pestaña.
6 |
7 | ### ⌨️ Actividad: Agregar otro método en C# y ver todas las sugerencias
8 |
9 | 1. Desde el codespace en el Explorador de Soluciones, haz clic derecho sobre el proyecto y crea un nuevo archivo.
10 |
11 | > Nota: Si cerraste el Codespace anteriormente, vuelve a abrirlo o crea uno nuevo.
12 |
13 | 2. Selecciona **Class** y nombra el archivo `Members.cs`.
14 | 3. En el archivo `Members.cs`, escribe la siguiente función dentro de la clase `Member`.
15 | ```
16 | public strin
17 | ```
18 | 4. Deja de escribir y observa la sugerencia de Copilot pasando el cursor sobre el texto rojo con subrayado ondulado, selecciona `...`
19 | 5. Click `Open Completions Panel`.
20 |
21 | > **Note**
22 | > If you don't see the copilot code block suggestion or the red squiggly and the three dots `...`, you can type `control + enter` to bring up the GitHub Copilot completions panel.
23 |
24 | 6. Copilot will synthesize around 10 different code suggestions or press CTRL+Enter. You should see something like this:
25 | 
26 | 7. Find a solution you like and click `Accept Solution`.
27 | 8. Your ``. El archivo `Member.cs` se actualizará con tu solución.
28 |
29 | ### ⌨️ Actividad: Subir código a tu repositorio desde el codespace
30 |
31 | Usemos GitHub Copilot para resumir nuestros cambios y luego realizar el commit del código.
32 |
33 | 1. Abre la pestaña **Source Control**.
34 | 2. Haz clic en el botón ✨ en el campo de **Message** para que Copilot genere tu mensaje.
35 |
36 | 
37 |
38 | 3. Haz clic en el botón **Commit**.
39 |
40 | Ve a [Parte 4 del Ejercicio](./4-copilot-comment.md).
41 |
42 | **Descargo de responsabilidad**:
43 | Este documento ha sido traducido utilizando servicios de traducción automática basados en inteligencia artificial. Si bien nos esforzamos por garantizar la precisión, tenga en cuenta que las traducciones automatizadas pueden contener errores o imprecisiones. El documento original en su idioma nativo debe considerarse la fuente autorizada. Para información crítica, se recomienda una traducción profesional realizada por humanos. No nos hacemos responsables de ningún malentendido o interpretación errónea que surja del uso de esta traducción.
--------------------------------------------------------------------------------
/translations/es/03-Introduction-to-GitHub-Copilot/steps/4-copilot-comment.md:
--------------------------------------------------------------------------------
1 | ## Paso 4: Usar comentarios para generar código con Copilot
2 |
3 | _¡Buen trabajo utilizando la pestaña de Copilot!_ :partying_face:
4 |
5 | Ahora has aprovechado la pestaña rápida de Copilot para sugerencias automáticas, así como el hub de Copilot para aceptar sugerencias generadas por la IA.
6 |
7 | ¡Veamos ahora cómo puedes usar comentarios para generar sugerencias de Copilot!
8 |
9 | ### ⌨️ Actividad: Generar código sugerido por Copilot a partir de comentarios.
10 |
11 | 1. Dentro del espacio de trabajo en el Explorador de Soluciones, haz clic derecho en el proyecto y crea un archivo nuevo.
12 |
13 | > Nota: Si cerraste el espacio de trabajo anterior, vuelve a abrirlo o crea uno nuevo.
14 |
15 | 2. Selecciona **Class** y nombra el archivo como `Comments.cs`.
16 | 3. Escribe el siguiente comentario dentro del archivo, dentro de la clase **Comments**:
17 | ```
18 | // create a method that generates a comment for a given skill
19 | ```
20 | 4. Presiona `enter` to go to a new line.
21 | 5. Copilot will suggest a code block.
22 | 6. Hover over the red squiggly and select the `...`
23 |
24 | > **Note**
25 | > If you don't see the copilot code block suggestion or the red squiggly and the three dots `...`, you can type `control + enter` to bring up the GitHub Copilot completions panel.
26 |
27 | 7. Click `Open Completions Panel`. Copilot will synthesise around 10 different code suggestions. You should see something like this:
28 | 
29 | 8. Find a solution you like and click `Accept Solution`.
30 | 9. Tu archivo `Comments.cs` se actualizará con tu solución.
31 |
32 | ### ⌨️ Actividad: Enviar código a tu repositorio desde el espacio de trabajo
33 |
34 | Usemos GitHub Copilot para resumir nuestros cambios y luego hacer el commit del código.
35 |
36 | 1. Abre la pestaña **Source Control**.
37 | 2. Haz clic en el botón ✨ en el campo de entrada de **Message** para que Copilot genere tu mensaje.
38 |
39 | 
40 |
41 | 3. Haz clic en el botón **Commit**.
42 |
43 | Dirígete a [Ejercicio 4 - Usar GitHub Copilot con C#](../../04-Using-GitHub-Copilot-with-CSharp/README.md)
44 |
45 | **Descargo de responsabilidad**:
46 | Este documento ha sido traducido utilizando servicios de traducción automática basados en inteligencia artificial. Si bien nos esforzamos por garantizar la precisión, tenga en cuenta que las traducciones automatizadas pueden contener errores o imprecisiones. El documento original en su idioma nativo debe considerarse como la fuente autorizada. Para información crítica, se recomienda una traducción profesional realizada por humanos. No nos hacemos responsables de ningún malentendido o interpretación errónea que surja del uso de esta traducción.
--------------------------------------------------------------------------------
/translations/es/05-Creating-Mini-Game-with-GitHub-Copilot/CODE_OF_CONDUCT.md:
--------------------------------------------------------------------------------
1 | # Código de Conducta de Código Abierto de Microsoft
2 |
3 | Este proyecto ha adoptado el [Código de Conducta de Código Abierto de Microsoft](https://opensource.microsoft.com/codeofconduct/).
4 |
5 | Recursos:
6 |
7 | - [Código de Conducta de Código Abierto de Microsoft](https://opensource.microsoft.com/codeofconduct/)
8 | - [Preguntas frecuentes sobre el Código de Conducta de Microsoft](https://opensource.microsoft.com/codeofconduct/faq/)
9 | - Contacta a [opencode@microsoft.com](mailto:opencode@microsoft.com) si tienes preguntas o inquietudes
10 |
11 | **Descargo de responsabilidad**:
12 | Este documento ha sido traducido utilizando servicios de traducción automática basados en inteligencia artificial. Si bien nos esforzamos por lograr precisión, tenga en cuenta que las traducciones automatizadas pueden contener errores o imprecisiones. El documento original en su idioma nativo debe considerarse como la fuente autorizada. Para información crítica, se recomienda una traducción profesional realizada por humanos. No nos hacemos responsables de malentendidos o interpretaciones erróneas que puedan surgir del uso de esta traducción.
--------------------------------------------------------------------------------
/translations/es/CODE_OF_CONDUCT.md:
--------------------------------------------------------------------------------
1 | # Código de Conducta de Código Abierto de Microsoft
2 |
3 | Este proyecto ha adoptado el [Código de Conducta de Código Abierto de Microsoft](https://opensource.microsoft.com/codeofconduct/).
4 |
5 | Recursos:
6 |
7 | - [Código de Conducta de Código Abierto de Microsoft](https://opensource.microsoft.com/codeofconduct/)
8 | - [Preguntas Frecuentes sobre el Código de Conducta de Microsoft](https://opensource.microsoft.com/codeofconduct/faq/)
9 | - Contacta a [opencode@microsoft.com](mailto:opencode@microsoft.com) para preguntas o inquietudes
10 |
11 | **Descargo de responsabilidad**:
12 | Este documento ha sido traducido utilizando servicios de traducción automática basados en inteligencia artificial. Si bien nos esforzamos por garantizar la precisión, tenga en cuenta que las traducciones automáticas pueden contener errores o imprecisiones. El documento original en su idioma nativo debe considerarse la fuente autorizada. Para información crítica, se recomienda una traducción profesional realizada por humanos. No nos hacemos responsables de malentendidos o interpretaciones erróneas que puedan surgir del uso de esta traducción.
--------------------------------------------------------------------------------
/translations/es/SUPPORT.md:
--------------------------------------------------------------------------------
1 | # TODO: El encargado de este repositorio aún no ha editado este archivo
2 |
3 | **PROPIETARIO DEL REPOSITORIO**: ¿Deseas soporte de Servicio y Soporte al Cliente (CSS) para este producto/proyecto?
4 |
5 | - **Sin soporte CSS:** Completa esta plantilla con información sobre cómo reportar problemas y obtener ayuda.
6 | - **Con soporte CSS:** Llena un formulario de ingreso en [aka.ms/onboardsupport](https://aka.ms/onboardsupport). CSS trabajará contigo para determinar los próximos pasos.
7 | - **¿No estás seguro?** Llena un formulario de ingreso como si la respuesta fuera "Sí". CSS te ayudará a decidir.
8 |
9 | *Luego elimina este primer encabezado de este archivo SUPPORT.MD antes de publicar tu repositorio.*
10 |
11 | # Soporte
12 |
13 | ## Cómo reportar problemas y obtener ayuda
14 |
15 | Este proyecto utiliza GitHub Issues para rastrear errores y solicitudes de características. Por favor, busca entre los problemas existentes antes de crear uno nuevo para evitar duplicados. Para nuevos problemas, reporta tu error o solicitud de característica como un nuevo Issue.
16 |
17 | Para obtener ayuda y resolver dudas sobre el uso de este proyecto, por favor **ENCARGADO DEL REPOSITORIO: INSERTA AQUÍ LAS INSTRUCCIONES SOBRE CÓMO CONTACTAR A LOS PROPIETARIOS DEL REPOSITORIO O A LA COMUNIDAD PARA OBTENER AYUDA. PODRÍA SER UNA ETIQUETA DE STACK OVERFLOW U OTRO CANAL. ¿DÓNDE AYUDARÁS A LAS PERSONAS?**.
18 |
19 | ## Política de soporte de Microsoft
20 |
21 | El soporte para este **PROYECTO o PRODUCTO** se limita a los recursos listados anteriormente.
22 |
23 | **Descargo de responsabilidad**:
24 | Este documento ha sido traducido utilizando servicios de traducción automática basados en inteligencia artificial. Si bien nos esforzamos por garantizar la precisión, tenga en cuenta que las traducciones automatizadas pueden contener errores o imprecisiones. El documento original en su idioma nativo debe considerarse como la fuente autorizada. Para información crítica, se recomienda una traducción profesional realizada por humanos. No nos hacemos responsables de malentendidos o interpretaciones erróneas que puedan surgir del uso de esta traducción.
--------------------------------------------------------------------------------
/translations/fr/03-Introduction-to-GitHub-Copilot/steps/2-skills-dotnet.md:
--------------------------------------------------------------------------------
1 | ## Étape 2 : Voir les suggestions de code AI dans un fichier C# !
2 |
3 | _Bien joué ! :tada: Vous avez créé un Codespace en utilisant un fichier devcontainer qui a installé Copilot !_
4 |
5 | GitHub Copilot fournit des suggestions pour de nombreux langages et une grande variété de frameworks, mais fonctionne particulièrement bien avec Python, JavaScript, TypeScript, Ruby, Go, C# et C++. Les exemples suivants sont en C#, mais les autres langages fonctionneront de manière similaire.
6 |
7 | Essayons cela en utilisant C# pour Copilot.
8 |
9 | > **Note** :
10 | > Si vous avez fermé le Codespace précédent, veuillez le rouvrir ou en créer un nouveau.
11 |
12 | ### ⌨️ Activité : Ajouter un fichier C# et commencer à écrire du code
13 |
14 | > **Note** :
15 | > Assurez-vous d’ouvrir l’**Explorateur de solutions** pour avoir une vue organisée et ajouter facilement de nouveaux projets, puis les exécuter.
16 |
17 | 1. Créez un nouveau projet .NET en utilisant la commande `.NET: New Project...` et en sélectionnant `Console App`.
18 | 1. Sélectionnez le dossier **code** et nommez le projet **Skills**.
19 | 1. Ouvrez `Program.cs`.
20 | 1. Vérifiez que votre nouveau fichier ressemble à ceci :
21 | 
22 |
23 | 1. Dans le fichier `Program.cs`, supprimez tout code existant, puis tapez l’en-tête de fonction suivant.
24 |
25 | ```csharp
26 | void CalculateNumbers(int var1, int var2)
27 | {
28 | ```
29 |
30 | GitHub Copilot suggérera automatiquement un corps de fonction complet en texte grisé. Voici un exemple de ce que vous verrez probablement, mais la suggestion exacte peut varier.
31 | 
32 |
33 | 5. Appuyez sur `Tab` pour accepter la suggestion.
34 |
35 | ### ⌨️ Activité : Pousser le code vers votre dépôt depuis le Codespace
36 |
37 | Utilisons GitHub Copilot pour résumer nos modifications, puis valider le code.
38 |
39 | 1. Ouvrez l’onglet **Source Control**.
40 | 2. Cliquez sur le bouton ✨ dans le champ **Message** pour que Copilot génère votre message.
41 |
42 | 
43 |
44 | 3. Cliquez sur le bouton **Commit**.
45 |
46 | Rendez-vous à la [Partie 3 de l'exercice](./3-copilot-hub.md)
47 |
48 | **Avertissement** :
49 | Ce document a été traduit à l'aide de services de traduction automatique basés sur l'intelligence artificielle. Bien que nous nous efforcions d'assurer l'exactitude, veuillez noter que les traductions automatisées peuvent contenir des erreurs ou des inexactitudes. Le document original dans sa langue d'origine doit être considéré comme la source faisant autorité. Pour des informations critiques, il est recommandé de recourir à une traduction humaine professionnelle. Nous déclinons toute responsabilité en cas de malentendus ou d'interprétations erronées découlant de l'utilisation de cette traduction.
--------------------------------------------------------------------------------
/translations/fr/03-Introduction-to-GitHub-Copilot/steps/3-copilot-hub.md:
--------------------------------------------------------------------------------
1 | ## Étape 3 : Afficher l'onglet GitHub Copilot avec plusieurs suggestions
2 |
3 | _Bien joué ! Vous venez d'utiliser les suggestions de code générées par l'IA dans un fichier C# grâce à GitHub Copilot :sparkles:_
4 |
5 | Gardez à l'esprit qu'au fur et à mesure que vous utilisez Copilot, certaines suggestions proposées par GitHub Copilot pourraient ne pas vous convenir. GitHub Copilot affichera plusieurs suggestions dans un nouvel onglet.
6 |
7 | ### ⌨️ Activité : Ajouter une autre méthode C# et afficher toutes les suggestions
8 |
9 | 1. Depuis l'espace de travail dans l'Explorateur de solution, faites un clic droit sur le projet et créez un nouveau fichier.
10 |
11 | > Note : Si vous avez fermé l'espace de travail précédemment, rouvrez-le ou créez un nouvel espace de travail.
12 |
13 | 2. Sélectionnez **Classe** et nommez le fichier `Members.cs`.
14 | 3. Dans le fichier `Members.cs`, tapez la fonction suivante à l'intérieur de la classe `Member`.
15 | ```
16 | public strin
17 | ```
18 | 4. Arrêtez de taper et visualisez la suggestion de Copilot en survolant le texte rouge souligné et sélectionnez `...`
19 | 5. Click `Open Completions Panel`.
20 |
21 | > **Note**
22 | > If you don't see the copilot code block suggestion or the red squiggly and the three dots `...`, you can type `control + enter` to bring up the GitHub Copilot completions panel.
23 |
24 | 6. Copilot will synthesize around 10 different code suggestions or press CTRL+Enter. You should see something like this:
25 | 
26 | 7. Find a solution you like and click `Accept Solution`.
27 | 8. Your ``. Le fichier `Member.cs` sera mis à jour avec votre solution.
28 |
29 | ### ⌨️ Activité : Pousser le code dans votre dépôt depuis l'espace de travail
30 |
31 | Utilisons GitHub Copilot pour résumer nos modifications, puis valider le code.
32 |
33 | 1. Ouvrez l'onglet **Contrôle de source**.
34 | 2. Appuyez sur le bouton ✨ dans le champ **Message** pour permettre à Copilot de générer votre message.
35 |
36 | 
37 |
38 | 3. Cliquez sur le bouton **Commit**.
39 |
40 | Passez à la [Partie 4 de l'exercice](./4-copilot-comment.md)
41 |
42 | **Avertissement** :
43 | Ce document a été traduit à l'aide de services de traduction automatique basés sur l'intelligence artificielle. Bien que nous nous efforcions d'assurer l'exactitude, veuillez noter que les traductions automatisées peuvent contenir des erreurs ou des inexactitudes. Le document original dans sa langue d'origine doit être considéré comme la source faisant autorité. Pour des informations critiques, il est recommandé de recourir à une traduction humaine professionnelle. Nous déclinons toute responsabilité en cas de malentendus ou d'interprétations erronées résultant de l'utilisation de cette traduction.
--------------------------------------------------------------------------------
/translations/fr/03-Introduction-to-GitHub-Copilot/steps/4-copilot-comment.md:
--------------------------------------------------------------------------------
1 | ## Étape 4 : Utiliser des commentaires pour générer du code avec Copilot
2 |
3 | _Bien joué en utilisant l'onglet Copilot !_ :partying_face:
4 |
5 | Vous avez maintenant exploité l'onglet rapide de Copilot pour des suggestions automatiques ainsi que le hub Copilot pour accepter des propositions générées par l'IA.
6 |
7 | Voyons maintenant comment utiliser des commentaires pour générer des suggestions avec Copilot !
8 |
9 | ### ⌨️ Activité : Générer du code suggéré par Copilot à partir de commentaires.
10 |
11 | 1. Depuis l'espace de code dans l'Explorateur de solutions, faites un clic droit sur le projet, créez un nouveau fichier.
12 |
13 | > Note : Si vous avez fermé l'espace de code mentionné précédemment, veuillez le rouvrir ou en créer un nouveau.
14 |
15 | 2. Sélectionnez **Classe** et nommez le fichier `Comments.cs`.
16 | 3. Tapez le commentaire suivant dans le fichier à l'intérieur de la classe **Comments** :
17 | ```
18 | // create a method that generates a comment for a given skill
19 | ```
20 | 4. Appuyez sur `entrer` to go to a new line.
21 | 5. Copilot will suggest a code block.
22 | 6. Hover over the red squiggly and select the `...`
23 |
24 | > **Note**
25 | > If you don't see the copilot code block suggestion or the red squiggly and the three dots `...`, you can type `control + entrer` to bring up the GitHub Copilot completions panel.
26 |
27 | 7. Click `Ouvrir le panneau des complétions`. Copilot will synthesise around 10 different code suggestions. You should see something like this:
28 | 
29 | 8. Find a solution you like and click `Accepter la solution`.
30 | 9. Votre fichier `Comments.cs` sera mis à jour avec votre solution.
31 |
32 | ### ⌨️ Activité : Pousser le code vers votre dépôt depuis l'espace de code
33 |
34 | Utilisons GitHub Copilot pour résumer nos modifications et ensuite valider le code.
35 |
36 | 1. Ouvrez l'onglet **Contrôle de source**.
37 | 2. Appuyez sur le bouton ✨ dans le champ **Message** pour que Copilot génère votre message.
38 |
39 | 
40 |
41 | 3. Cliquez sur le bouton **Commit**.
42 |
43 | Rendez-vous sur [Exercice 4 - Utiliser GitHub Copilot avec C#](../../04-Using-GitHub-Copilot-with-CSharp/README.md)
44 |
45 | **Clause de non-responsabilité** :
46 | Ce document a été traduit à l'aide de services de traduction automatique basés sur l'intelligence artificielle. Bien que nous nous efforcions d'assurer l'exactitude, veuillez noter que les traductions automatisées peuvent contenir des erreurs ou des inexactitudes. Le document original dans sa langue d'origine doit être considéré comme la source faisant autorité. Pour des informations critiques, il est recommandé de recourir à une traduction humaine professionnelle. Nous déclinons toute responsabilité en cas de malentendus ou d'interprétations erronées découlant de l'utilisation de cette traduction.
--------------------------------------------------------------------------------
/translations/fr/05-Creating-Mini-Game-with-GitHub-Copilot/CODE_OF_CONDUCT.md:
--------------------------------------------------------------------------------
1 | # Code de conduite open source de Microsoft
2 |
3 | Ce projet a adopté le [Code de conduite open source de Microsoft](https://opensource.microsoft.com/codeofconduct/).
4 |
5 | Ressources :
6 |
7 | - [Code de conduite open source de Microsoft](https://opensource.microsoft.com/codeofconduct/)
8 | - [FAQ sur le code de conduite de Microsoft](https://opensource.microsoft.com/codeofconduct/faq/)
9 | - Contactez [opencode@microsoft.com](mailto:opencode@microsoft.com) pour toute question ou préoccupation
10 |
11 | **Avertissement** :
12 | Ce document a été traduit à l'aide de services de traduction automatique basés sur l'intelligence artificielle. Bien que nous fassions de notre mieux pour garantir l'exactitude, veuillez noter que les traductions automatiques peuvent contenir des erreurs ou des inexactitudes. Le document original dans sa langue d'origine doit être considéré comme la source faisant autorité. Pour des informations critiques, il est recommandé de recourir à une traduction professionnelle humaine. Nous déclinons toute responsabilité en cas de malentendus ou d'interprétations erronées résultant de l'utilisation de cette traduction.
--------------------------------------------------------------------------------
/translations/fr/CODE_OF_CONDUCT.md:
--------------------------------------------------------------------------------
1 | # Code de conduite Open Source de Microsoft
2 |
3 | Ce projet a adopté le [Code de conduite Open Source de Microsoft](https://opensource.microsoft.com/codeofconduct/).
4 |
5 | Ressources :
6 |
7 | - [Code de conduite Open Source de Microsoft](https://opensource.microsoft.com/codeofconduct/)
8 | - [FAQ sur le Code de conduite de Microsoft](https://opensource.microsoft.com/codeofconduct/faq/)
9 | - Contactez [opencode@microsoft.com](mailto:opencode@microsoft.com) pour toute question ou préoccupation
10 |
11 | **Avertissement** :
12 | Ce document a été traduit à l'aide de services de traduction automatique basés sur l'intelligence artificielle. Bien que nous nous efforcions d'assurer l'exactitude, veuillez noter que les traductions automatisées peuvent contenir des erreurs ou des inexactitudes. Le document original dans sa langue d'origine doit être considéré comme la source faisant autorité. Pour des informations critiques, il est recommandé de recourir à une traduction humaine professionnelle. Nous déclinons toute responsabilité en cas de malentendus ou d'interprétations erronées résultant de l'utilisation de cette traduction.
--------------------------------------------------------------------------------
/translations/fr/SUPPORT.md:
--------------------------------------------------------------------------------
1 | # TODO : Le responsable de ce dépôt n'a pas encore modifié ce fichier
2 |
3 | **PROPRIÉTAIRE DU DÉPÔT** : Souhaitez-vous un support du service client et assistance (CSS) pour ce produit/projet ?
4 |
5 | - **Pas de support CSS :** Remplissez ce modèle avec des informations sur la manière de signaler des problèmes et d'obtenir de l'aide.
6 | - **Support CSS activé :** Remplissez un formulaire d'intégration sur [aka.ms/onboardsupport](https://aka.ms/onboardsupport). Le CSS collaborera avec vous pour déterminer les prochaines étapes.
7 | - **Pas sûr ?** Remplissez un formulaire d'intégration comme si la réponse était "Oui". Le CSS vous aidera à décider.
8 |
9 | *Ensuite, supprimez ce premier titre de ce fichier SUPPORT.MD avant de publier votre dépôt.*
10 |
11 | # Support
12 |
13 | ## Comment signaler des problèmes et obtenir de l'aide
14 |
15 | Ce projet utilise GitHub Issues pour suivre les bugs et les demandes de fonctionnalités. Veuillez rechercher les problèmes existants avant d'en créer de nouveaux afin d'éviter les doublons. Pour signaler de nouveaux problèmes, soumettez votre bug ou votre demande de fonctionnalité en tant que nouvelle issue.
16 |
17 | Pour obtenir de l'aide et poser des questions sur l'utilisation de ce projet, veuillez **RESPONSABLE DU DÉPÔT : INSÉREZ ICI LES INSTRUCTIONS SUR COMMENT CONTACTER LES PROPRIÉTAIRES DU DÉPÔT OU LA COMMUNAUTÉ POUR OBTENIR DE L'AIDE. CELA PEUT ÊTRE UN TAG STACK OVERFLOW OU UN AUTRE CANAL. OÙ AIDEREZ-VOUS LES GENS ?**.
18 |
19 | ## Politique de support Microsoft
20 |
21 | Le support pour ce **PROJET ou PRODUIT** est limité aux ressources mentionnées ci-dessus.
22 |
23 | **Avertissement** :
24 | Ce document a été traduit à l'aide de services de traduction basés sur l'intelligence artificielle. Bien que nous fassions de notre mieux pour garantir l'exactitude, veuillez noter que les traductions automatisées peuvent contenir des erreurs ou des inexactitudes. Le document original dans sa langue d'origine doit être considéré comme la source faisant autorité. Pour des informations critiques, il est recommandé de recourir à une traduction humaine professionnelle. Nous déclinons toute responsabilité en cas de malentendus ou d'interprétations erronées résultant de l'utilisation de cette traduction.
--------------------------------------------------------------------------------
/translations/ja/01-Introduction-to-GitHub/README.md:
--------------------------------------------------------------------------------
1 |
2 |
3 | # GitHubの紹介
4 |
5 | この学習モジュールでは、GitHubの基本的な側面を掘り下げます。GitHubは、AIを活用した主要な開発者向けプラットフォームで、共同ソフトウェア開発を支援します。このモジュールは、新しい開発者、GitHub初心者、学生を対象としており、GitHubリポジトリ内での実践的な体験を提供し、基本的な機能を包括的に紹介します。
6 |
7 | 人々は毎日GitHubを使用して、地球上で最も先進的な技術のいくつかを構築しています。データを視覚化する場合でも、新しいゲームを作成する場合でも、GitHubにはそれをさらに良くするためのコミュニティとツールが揃っています。
8 |
9 |
10 |
11 | - **対象者**: 新しい開発者、GitHub初心者、学生。
12 | - **学べること**: リポジトリ、ブランチ、コミット、プルリクエストを紹介します。
13 | - **作成するもの**: あなたの[プロフィールREADME](https://docs.github.com/account-and-profile/setting-up-and-managing-your-github-profile/customizing-your-profile/managing-your-profile-readme)として使用できる短いMarkdownファイルを作成します。
14 | - **前提条件**: なし。このコースはGitHubを初めて使う人に最適です。
15 | - **所要時間**: このコースは1時間以内で完了します。
16 |
17 | このモジュールでは以下を学びます:
18 |
19 | 1. GitHubの基本機能を特定する。
20 | 2. リポジトリ管理のベストプラクティスを学ぶ。
21 | 3. ブランチ、コミット、プルリクエストを含むGitHubフローを理解する。
22 | 4. Issuesやディスカッションを通じてGitHubの共同作業機能を探る。
23 | 5. GitHubの通知や購読を管理する方法を認識する。
24 |
25 |
26 | ## 事前に読むべき資料:
27 |
28 | - [GitHubの紹介](https://learn.microsoft.com/training/modules/introduction-to-github)
29 |
30 | - GitHubとは?(以下のビデオ)
31 | - [](https://www.youtube.com/watch?v=pBy1zgt0XPc)
32 |
33 |
34 |
35 | ### このコースを始める方法
36 |
37 |
47 |
48 | [](https://github.com/new?template_owner=skills&template_name=introduction-to-github&owner=%40me&name=skills-introduction-to-github&description=My+clone+repository&visibility=public)
49 |
50 | 1. **Start course**を右クリックし、新しいタブでリンクを開きます。
51 | 2. 新しいタブでは、ほとんどのプロンプトが自動的に入力されます。
52 | - オーナーには、個人アカウントまたはリポジトリをホストする組織を選択してください。
53 | - 非公開リポジトリでは[Actions分の利用時間](https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions?WT.mc_id=academic-113596-abartolo)が消費されるため、公開リポジトリを作成することをお勧めします。
54 | - フォームの一番下にある**Create repository**ボタンをクリックしてください。
55 | 3. 新しいリポジトリが作成されたら、約20秒待ってからページを更新します。新しいリポジトリのREADMEに記載された手順に従ってください。
56 |
57 |