The editor we will be using in class is called Visual Studio Code, though most people who use it call it by its nickname "vscode" (pronounced "vee ess code"). When you want to run vscode, you run the program called code
.
There are lots of options and keyboard shortcuts in vscode. You don’t need to learn them all, but the ones below will help you be more efficient. The vscode website provides a reference guide for the shortcut keys in Linux.
vscode keyboard shortcuts
moving
keys | result |
---|---|
|
move up a page |
|
move down a page |
|
enter line number, move to that line |
|
move to beginning of line |
|
move to end of line |
|
move right one word |
|
move left one word |
copy/paste/delete
keys | result |
---|---|
|
copy |
|
cut |
|
paste |
|
indent the line when the cursor is at the start of the line |
|
unindent the line when the cursor is at the start of the line |
|
indent line regardless of where the cursor is |
|
unindent line regardless of where the cursor is |
|
select a region of code |
|
select line (repeat to select multiple lines) |
save/quit/undo
keys | result |
---|---|
|
undo |
|
redo |
|
open file |
|
new file |
|
save |
|
quit |
miscellaneous
keys | result |
---|---|
|
(control + equals sign) increase font size |
|
(control + minus sign) decrease font size |
|
go to next/previous Tab |
|
toggle full screen |
|
(control+shift+back tick) open terminal |