VSCode Basics Flashcards

1
Q

Q: What is Visual Studio Code (VSCode)?

A

A: VSCode is a free, lightweight, open-source code editor developed by Microsoft with support for multiple languages and extensions.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Q: How do you open a folder in VSCode?

A

A: Use File > Open Folder or press Cmd+K Cmd+O.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Q: How do you open the command palette in VSCode?

A

A: Press Cmd+Shift+P.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Q: What is the command to open a new file in VSCode?

A

A: Press Cmd+N.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Q: How do you save a file in VSCode?

A

A: Press Cmd+S.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Q: What is the shortcut to toggle the integrated terminal in VSCode?

A

A: Press Cmd+` (backtick).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Q: How do you open the settings in VSCode?

A

A: Use Code > Preferences > Settings or press Cmd+,`.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Q: How do you open the extensions marketplace in VSCode?

A

A: Click the Extensions icon in the sidebar or press Cmd+Shift+X.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Q: How do you install an extension in VSCode?

A

A: Search for the extension in the marketplace and click Install.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Q: What is the shortcut to format code in VSCode?

A

A: Press Shift+Option+F.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Q: How do you enable auto-save in VSCode?

A

A: Go to File > Auto Save or set “files.autoSave”: “afterDelay” in settings.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Q: How do you change the default theme in VSCode?

A

A: Go to Code > Preferences > Color Theme or press Cmd+K Cmd+T.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Q: What is the shortcut to comment/uncomment lines of code?

A

A: Press Cmd+/.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Q: How do you split the editor in VSCode?

A

A: Press Cmd+.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Q: How do you navigate between editor groups in VSCode?

A

A: Use Cmd+1, Cmd+2, etc.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Q: What is the shortcut to search for files in VSCode?

A

A: Press Cmd+P.

17
Q

Q: How do you search for text within files in VSCode?

A

A: Press Cmd+Shift+F.

18
Q

Q: What is the shortcut to toggle the sidebar in VSCode?

A

A: Press Cmd+B.

19
Q

Q: How do you debug code in VSCode?

A

A: Click the Run and Debug icon in the sidebar or press F5.

20
Q

Q: How do you add a breakpoint in VSCode?

A

A: Click in the margin next to a line number or press F9.

21
Q

Q: How do you view the Git panel in VSCode?

A

A: Click the Source Control icon in the sidebar or press Cmd+Shift+G.

22
Q

Q: How do you stage changes in VSCode using Git?

A

A: In the Source Control panel, click the + icon next to the file.

23
Q

Q: What is the shortcut to open the file explorer in VSCode?

A

A: Press Cmd+Shift+E.

24
Q

Q: How do you open the settings.json file in VSCode?

A

A: Open the Command Palette (Cmd+Shift+P) and search for “Preferences: Open Settings (JSON)”.

25
Q

Q: What is the shortcut to zoom in or out in VSCode?

A

A: Press Cmd+= to zoom in, Cmd+- to zoom out.