Skip to content

Commit aafe067

Browse files
authored
pull base content,head:wwlpublishsync,into:b0c67b7f93b8007a757ece3715f23dfc52a7087020481635f12fb53ee3418090-live
2 parents 8a4d0b1 + 3bb1d4e commit aafe067

File tree

1,538 files changed

+2324
-350
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,538 files changed

+2324
-350
lines changed

learn-pr/advocates/accelerate-scale-spring-boot-application-azure-cache-redis/8-knowledge-check.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ metadata:
1010
ms.topic: unit
1111
ms.custom: team=cloud_advocates
1212
ms.contributors: judubois-03112021
13+
module_assessment: true
1314
durationInMinutes: 3
1415
quiz:
1516
title: Check your knowledge

learn-pr/advocates/ai-security-controls/8-knowledge-check.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ metadata:
88
author: sarah-yo
99
ms.author: sayoung
1010
ms.topic: unit
11+
module_assessment: true
1112
durationInMinutes: 3
1213
content: Choose the best response for each question.
1314
quiz:

learn-pr/advocates/azure-arc-esu-windows-server/5-knowledge-check.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ metadata:
99
ms.author: orthomas
1010
ms.topic: unit
1111
ms.custom: team=cloud_advocates
12+
module_assessment: true
1213
durationInMinutes: 5
1314
content: Choose the best response for each question.
1415
quiz:

learn-pr/advocates/build-with-playwright/7-knowledge-check.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ metadata:
99
author: debs-obrien
1010
ms.manager: jamont
1111
ms.topic: unit
12+
module_assessment: true
1213
durationInMinutes: 6
1314
content: |
1415
Choose the best response for each question.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
### YamlMime:ModuleUnit
2+
uid: learn.challenge-github-copilot-with-sql.introduction-github-copilot-codespaces
3+
title: Introduction to GitHub Copilot in GitHub Codespaces
4+
metadata:
5+
title: Introduction to GitHub Copilot in GitHub Codespaces
6+
description: Learn how to use GitHub Copilot in GitHub Codespaces to enhance your coding experience.
7+
ms.date: 06/25/2025
8+
author: Orin-Thomas
9+
ms.author: orthomas
10+
ms.topic: unit
11+
durationInMinutes: 7
12+
content: |
13+
[!include[](includes/1-introduction-github-copilot-codespaces.md)]
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
### YamlMime:ModuleUnit
2+
uid: learn.challenge-github-copilot-with-sql.work-with-sql-using-github-copilot
3+
title: Work with SQL using GitHub Copilot
4+
metadata:
5+
title: Work With SQL Using GitHub Copilot
6+
description: Learn how to leverage GitHub Copilot to write and optimize SQL queries more efficiently.
7+
ms.date: 06/25/2025
8+
author: Orin-Thomas
9+
ms.author: orthomas
10+
ms.topic: unit
11+
durationInMinutes: 11
12+
content: |
13+
[!include[](includes/2-work-with-sql-using-github-copilot.md)]
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
### YamlMime:ModuleUnit
2+
uid: learn.challenge-github-copilot-with-sql.github-skills-exercise
3+
title: Hands-on exercise - Challenging GitHub Copilot with SQL
4+
metadata:
5+
title: Hands-on exercise - Challenging GitHub Copilot with SQL
6+
description: Learn how to apply advanced GitHub Copilot features to interact with an application that uses complex SQL queries.
7+
ms.date: 06/25/2025
8+
author: Orin-Thomas
9+
ms.author: orthomas
10+
ms.topic: unit
11+
durationInMinutes: 3
12+
content: |
13+
[!include[](includes/3-github-skills-exercise.md)]
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
### YamlMime:ModuleUnit
2+
uid: learn.challenge-github-copilot-with-sql.knowledge-check
3+
title: Knowledge check
4+
metadata:
5+
title: Knowledge Check
6+
description: Check your knowledge.
7+
ms.date: 06/25/2025
8+
author: Orin-Thomas
9+
ms.author: orthomas
10+
ms.topic: unit
11+
durationInMinutes: 3
12+
content: Choose the best response for each question.
13+
quiz:
14+
questions:
15+
- content: "How can GitHub Copilot assist in optimizing SQL queries within a GitHub Codespace environment?"
16+
choices:
17+
- content: "By providing general coding tips and tricks."
18+
isCorrect: false
19+
explanation: "General coding tips don't address SQL query optimization."
20+
- content: "By suggesting specific optimizations for slow or inefficient queries."
21+
isCorrect: true
22+
explanation: "GitHub Copilot can analyze SQL queries and suggest optimizations such as removing unnecessary JOINs, optimizing SELECT DISTINCT, or refactoring subqueries."
23+
- content: "By automatically rewriting all SQL queries without user input."
24+
isCorrect: false
25+
explanation: "GitHub Copilot requires user input to provide specific suggestions and doesn't automatically rewrite all queries."
26+
- content: "What is the role of GitHub Copilot in generating SQL-based tests or assertions?"
27+
choices:
28+
- content: "It can suggest appropriate testing frameworks based on the project type."
29+
isCorrect: true
30+
explanation: "GitHub Copilot can help generate SQL-based tests or assertions to verify query results or database state and suggest appropriate testing frameworks based on the project type."
31+
- content: "It can execute SQL tests automatically without user intervention."
32+
isCorrect: false
33+
explanation: "GitHub Copilot assists in generating tests but doesn't execute them automatically."
34+
- content: "It can only generate unit tests for non-SQL code."
35+
isCorrect: false
36+
explanation: "GitHub Copilot can generate tests for SQL code as well as other types of code."
37+
- content: "How can GitHub Copilot enhance the understanding of complex SQL queries?"
38+
choices:
39+
- content: "By providing detailed documentation for the entire codebase."
40+
isCorrect: false
41+
explanation: "While GitHub Copilot can generate documentation, the specific enhancement for understanding SQL queries comes from its ability to explain to them."
42+
- content: "By explaining the logic and structure of complex SQL queries."
43+
isCorrect: true
44+
explanation: "GitHub Copilot can explain complex SQL queries to help users understand their logic and structure."
45+
- content: "By rewriting SQL queries to make them simpler."
46+
isCorrect: false
47+
explanation: "Rewriting queries is related to optimization and refactoring, but doesn't increase understanding of query functionality."
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
### YamlMime:ModuleUnit
2+
uid: learn.challenge-github-copilot-with-sql.summary
3+
title: Summary
4+
metadata:
5+
title: Summary
6+
description: Summary of the module.
7+
ms.date: 06/25/2025
8+
author: Orin-Thomas
9+
ms.author: orthomas
10+
ms.topic: unit
11+
durationInMinutes: 1
12+
content: |
13+
[!include[](includes/5-summary.md)]
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
GitHub Copilot is an AI pair programmer that helps you write code faster and with less effort. Copilot works alongside you directly in your code editor, seamlessly integrating AI into your workflow. It provides intelligent code suggestions and completions based on the context of your code, helping you write code more efficiently and accurately.
2+
3+
General support features:
4+
5+
- Language Support: Supports multiple programming languages and frameworks, adapting to the code you're working on.
6+
- IDE Integration: Works directly in your code editor, providing suggestions and completions as you write code. Is available within the GitHub Codespaces environment.
7+
8+
GitHub Copilot's autocomplete features:
9+
10+
- Code line completions and suggestions are based on the context of your code.
11+
- Suggestions can be single lines of code, entire functions, or even entire classes.
12+
13+
Copilot suggestions can help you write code faster and with fewer errors, improving your productivity and efficiency.
14+
15+
GitHub Copilot Chat's AI assistance features include:
16+
17+
- Chat Interface: Provides a chat interface for interacting with GitHub Copilot, asking and receiving answers to coding-related questions.
18+
- Code Explanation: Provides explanations for selected code snippets, helping you understand syntax, programming concepts, test cases, debugging, and more, without requiring you to navigate documentation or search online forums.
19+
- Documentation Generation: Generates explanations or documentation for selected code or entire workspaces, helping you understand and document your codebase.
20+
- Test Case Generation: Helps in generating test cases for your code, saving time, and improving code quality.
21+
- Code fixes: Provides suggestions for refactoring code and fixing common issues, improving code quality and maintainability.
22+
23+
By using AI to assist with coding tasks, GitHub Copilot can help you focus on higher-level design and problem-solving, rather than getting bogged down in syntax and implementation details.
24+
25+
## Understand GitHub Codespaces
26+
27+
GitHub Codespaces provides a cloud hosted development environment, ready to use and accessible from any computer with an internet connection and standards compliant web browser. You use GitHub Codespaces within your browser and when a codespace is loaded, you interact with it as you would any traditional IDE. GitHub Codespaces provides you with an environment that includes all the essential languages, tools, and utilities you need to code effectively.
28+
29+
![A screenshot of the GitHub Codespace interface, showing the explorer, a readme file, and the Ask Copilot pane.](../media/codespace-interface.svg)
30+
31+
You can also use the terminal pane within a GitHub Codespace to run commands, such as python scripts.
32+
33+
![A screenshot showing a python script being called from a GitHub codespace.](../media/run-python-terminal.svg)
34+
35+
## Create a GitHub Codespace
36+
37+
To begin developing using GitHub Codespaces, you can create a codespace from a template or from any branch or commit in a GitHub repository. When you create a codespace from a template, you can start from a blank template or choose a template suitable for the work you're doing.
38+
39+
For example, you can:
40+
41+
- Create a codespace from your GitHub repository.
42+
- Push code from the codespace to your GitHub repository.
43+
- Use VS Code to develop code within the codespace.
44+
- Customize the codespace with custom images.
45+
46+
To open a codespace from your GitHub account, start at the landing page of your repository, choose the Code button, and then choose Create codespace on the repository on the Codespaces tab.
47+
48+
![A screenshot showing how to open a GitHub Codespace from a GitHub repository.](../media/open-codespace-repository.svg)
49+
50+
## Customize GitHub Codespaces
51+
52+
You can customize your project for GitHub Codespaces by committing configuration files to your repository (also known as configuration-as-code), which creates a repeatable codespace configuration for all users of your project. Each codespace you create is hosted by GitHub in a Docker container that runs on a virtual machine. You can choose the type of virtual machine you want to use depending on the resources you need.
53+
54+
You can configure the development container for a repository so that any codespace created for that repository gives you a tailored development environment, complete with all the tools and runtimes you need to work on a specific project. A development container file is a JSON file that lets you customize the default container image that runs your codespace. You can use this JSON file to configure VS Code settings, run custom code, manage network traffic port forwarding, and configure other settings.
55+
56+
## GitHub Copilot in GitHub Codespaces
57+
58+
One of the tools you can use within a GitHub Codespace is GitHub Copilot. You can verify that GitHub Copilot and Copilot Chat are available in your GitHub Codespaces environment by checking the Extensions tab and searching for GitHub Copilot and choosing the Install option if GitHub Copilot isn't already present.
59+
60+
![A screenshot of the Extensions pane showing the GitHub Copilot extension.](../media/install-copilot.svg)
61+
62+
You can use the GitHub Copilot icon to open the Copilot Chat panel. You can use the chat panel to interact with code and other artifacts within the GitHub Codespace interface.

0 commit comments

Comments
 (0)