VSCode Module #39 Flashcards

1
Q

Shortcut to open/hide the file browser

A

cmd/ctrl B

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

While in the search panel, how would you turn on case sensitivity?

A

Click the upper or lowercase letter(icons) in the search column.

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

How can you run a search and replace

A

Click the small triangle ▷ that looks like a play button in the search column.

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

How would you limit the search to only include certain file types

A

Click the three dots . . . in the search column.

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

What does a U mean when it is next to the files in the file browser?

A

It means that the file has been updated since the last commit. Sometimes when the directory that holds the files hasn’t been “Git Initialized” , of course all files in that directory are updated since there has been no initial commit.

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

How would you make the first commit

A

Create the first commit by writing a text message and pressing Cmd-Enter, or clicking the ✔︎ icon on top.

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

What is the short cut to open the terminal?

A

For Mac it is CTRL ` (Control backtick) To add another terminal window hit CTRL SHIFT `

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

How do you reveal the two terminal windows (if there is more than one open)

A

Hit the split-terminal icon that looks like two columns in the terminal browser.

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

How can you quickly format the document you’re working on

A

CMD SHIFT P + type format

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

How can you run a chunk of JS, PHP, or other language

A

CMD SHIFT P + type run

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

How can you show the files in the directory that your work is in?

A

CMD P

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

How can you show just the active files

A

CTRL SHIFT TAB

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

How can you quickly skip the cursor to a specific line in your code?

A

CTRL G

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

How can you show the elements or symbols used in your current document. Example you’re working on an HTML document and you want to skip to the FOOTER tag.

A

CMD SHIFT O

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

What’s the key command for switching themes?

A

CMD K + CMD T once in there you can arrow up or down to see a preview of various themes

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

How can you create a workspace?

A

File > Save Workspace As…

17
Q

What’s the key command to View Problems (errors)

A

CMD SHIFT M or View Problems

18
Q

How can you launch VSCode from the Mac Terminal?

A

type “code .” return = launches VSCode cool!

19
Q

How can you launch a new project in VSCode from the terminal?

A

type “code -n” + return

20
Q

How would you be able to compare the differnced between two files in the terminal?

A

type “code –diff fileName1.js fileName2.js” + return