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.
Start an agent-assisted refactor
From the course: AI-Powered Development: GitHub Copilot in Visual Studio Code
Start an agent-assisted refactor
Here's the refactoring I requested from Clod SONNET 4.5. I took this from the slides in the last video, refactored this monolithic HTML page to improve separation of concerns, and then I listed my goal. I also added a new sentence that wasn't in the previous video. Also refactor the code into better functional calls. Typically that means that you have smaller focused functions. Let's see if that's what happened. So here's the request at the top. I ran the query and here we can see a restatement of what the LLM is planning. The user wants me to refactor this HTML file. The goals are number one, move all CSS into an external style sheet, move all JavaScript into an external script file, keep the behavior and appearance unchanged, and refactor the code into better functional calls. So then it's reading this HTML file, looking through its list of to-do items, and working through those, and then here is the completed list. This is what this is a summary of what the agent did for us. It…
Contents
-
-
-
-
-
-
-
-
-
-
(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)
-
-
-
-
-
-
-
-
-
-
-