CLI and Shortcuts Flashcards

1
Q

vs code rename all variable

A

f2

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

vs code - select word

A

ctrl + d

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

vs code - go line #

A

ctrl + g

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

vs code - copy line

A

shift + alt + up/down

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

CLI - how to open file folder on windows WSL

A

explorer.exe . (the last dot is the home directory)

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

vs code peek defination

A

control + f12

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

vs code - add cursor

A

Ctrl + Alt + Up arrow / Down arrow

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

git ignore file name

A

.gitignore

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

vs code - command plat

A

ctrl + p

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

npm list all packages

A

npm list

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

vs code - move line

A

alt + up/down

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

npm install global package

A

npm install -g

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

git ignore file content

A
  • list the file name directly if on the top level

- using asterisk + suffix to hide certain types of file

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

npm install packages

A

npm install

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

ubuntu cli - create new folder

A

mkdir

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

ubuntu cli - display current directory

A

pwd

17
Q

ubuntu cli - create new file

A

touch testing.js

18
Q

ubuntu cli - list all files and directories

A

ls