Lecture 11 - Introduction to AI-Assisted Programming
07 October, 2024
```
, etc.)Applications
, Library
, System
, Users
/Users/yourusername/
) contains personal folders like Documents
, Desktop
, Downloads
- Access folders via Terminal:
Applications > Utilities > Terminal
)cd
command to navigate: cd ~/Documents
ls
commandpwd
command~
represents your home folder/
represents the root directory
github
folder to download and manage all your Emory projectsDocuments
github
folder, create a folder for each course and separate folders for each project or quizDocuments
github
qtm350
(our shared repository)qtm350-quiz01
(forked repository)qtm350-quiz02
(forked repository)
Source: Taulli (2024).
Chatbots are helpful in 2024!
” = ["Chat", "bots", "are", "help", "ful", "in", "2024", "!"]
Source: Tulio (2024).
Tab
or Enter
Ctrl
and the right arrow key to select just the next word TCtrl + I
, a text box will appear into which you can write a prompt CCtrl + I
to ask Copilot to suggest changes to that codeThere are a few standard commands that are available for prompting Copilot to do something when you have a piece of code selected
You can access these in the Ctrl + I
interface by typing a forward slash, then the name of the command. These are:
/doc
: This will ask Copilot to generate documentation for the selected code. This will suggest changes in the editor
/explain
: This will ask Copilot to explain the selected code. It will do this in the Copilot Chat extension
/fix
will look for problems in the selected code and suggest fixes for them in the editor.
/test
will ask Copilot to generate tests for the selected code. This will suggest changes in the editor, which may include creating a new file for the tests
You can also find these options by right-clicking a highlighted piece of code, and going into the Copilot menu
We’ll look at using some of these tools later in the course