From the course: AI-Powered Development: GitHub Copilot in Visual Studio Code
Unlock this course with a free trial
Join today to access over 25,300 courses taught by industry experts.
Evaluate and improve Python code
From the course: AI-Powered Development: GitHub Copilot in Visual Studio Code
Evaluate and improve Python code
This is a simple Python file that has one load config function with a few lines of code, plus it has this to-do comment on line 5. We're going to use this file as the basis of our first agent workflow. The purpose of this function is to load a JSON file, this config.json file, which I also have over here. Both of these files are in this pystart folder, which is in this agent folder. I'll be working with this agent folder for the next several chapters. Let's look at the prompt. We've talked about chat context earlier in this course but I think I neglected to mention one thing and that's how to specifically set context. I did talk about clicking on this button and picking it from here but let's talk about this file name at the top. When you switch between tabs, that file name is added to the top, like this. That's an implicit or implied context. If I want to make it explicit, I can click on this plus symbol. Now if I switch over to the config file, you'll see that the fix this pi file…
Download courses and learn on the go
Watch courses on your mobile device without an internet connection. Download courses using your iOS or Android LinkedIn Learning app.
Contents
-
-
(Locked)
Completions, chat, and agent modes8m 3s
-
(Locked)
Code competion: JavaScript2m 59s
-
(Locked)
Making sense of nondeterministic predictions1m 38s
-
(Locked)
Code completion: Python1m 46s
-
(Locked)
HTML and CSS completion1m 40s
-
(Locked)
More inline suggestions features3m 6s
-
(Locked)
Use comments to guide completion2m 32s
-
(Locked)
-
-
(Locked)
Use chat to ask code specific questions2m 48s
-
(Locked)
Use chat to explore a project4m 18s
-
(Locked)
Explore the Word Frequency Analyzer page1m 30s
-
(Locked)
Explain a section of code5m 53s
-
(Locked)
Guidance on potential issues2m 26s
-
(Locked)
Get refactoring suggestions2m 57s
-
(Locked)
Have Copilot draft an editing prompt3m 8s
-
(Locked)
Review the hidden reasoning workflow2m 34s
-
(Locked)
Inline chat: Exploring the code editor2m 34s
-
(Locked)
-
-
(Locked)
Create new chats3m
-
(Locked)
Chat panel vs. agent sessions3m 3s
-
(Locked)
Manage chat threads and history1m 57s
-
(Locked)
Rename a chat thread55s
-
(Locked)
Save a chat thread2m 54s
-
(Locked)
Delete a chat thread1m 56s
-
(Locked)
Customize chat settings2m 15s
-
(Locked)
Use voice and audio1m 47s
-
(Locked)
-
-
(Locked)
Prompt engineering for the agent4m 11s
-
(Locked)
Start an agent-assisted refactor2m 55s
-
(Locked)
Add blocked words to the UI2m 17s
-
(Locked)
Add additional files2m 34s
-
(Locked)
Clean up invalid charactors57s
-
(Locked)
Modernize the UI layer3m 29s
-
(Locked)
Refactor review: Outcomes and impact1m 53s
-
(Locked)
-
-
(Locked)
Prototype a Greenfield project7m 26s
-
(Locked)
Tour the graphic generation site1m 53s
-
(Locked)
Import a saved chat conversation3m 22s
-
(Locked)
How to prompt a graphic generation site4m 20s
-
(Locked)
Examine the generated code and UI5m 2s
-
(Locked)
Tour the Pedal and Pines site8m 13s
-
(Locked)
Review refactored site sections4m 36s
-
(Locked)
Review updated code and UI4m 52s
-
(Locked)
Prototype setbacks and frustrations1m 44s
-
(Locked)
Postmortems and prompt refinement2m 6s
-
(Locked)
-
-
(Locked)
Understand cloud and background agents5m 12s
-
(Locked)
Plan mode in Copilot: Quick review2m 25s
-
(Locked)
Session panel2m 23s
-
(Locked)
Create a plan5m 15s
-
(Locked)
Save plan as markdown1m 42s
-
(Locked)
Run the plan on background agent1m 40s
-
(Locked)
Use terminal with background agent2m
-
(Locked)
The Git worktree2m
-
(Locked)
Review the changes1m
-
(Locked)
Merge the changes1m 28s
-
(Locked)
-
-
(Locked)
MCP overview6m 35s
-
(Locked)
Query a database with an MCP server4m 9s
-
(Locked)
Generate TypeScript DB access code1m 23s
-
(Locked)
Understand mcp.json setting2m 13s
-
(Locked)
Enable catalog browsing in the Extensions panel1m
-
(Locked)
Install other MCP servers with the Extension panel3m 12s
-
(Locked)
Find MCP servers on GitHub2m 53s
-
(Locked)