CLI and Shortcuts Flashcards
1
Q
vs code rename all variable
A
f2
2
Q
vs code - select word
A
ctrl + d
3
Q
vs code - go line #
A
ctrl + g
4
Q
vs code - copy line
A
shift + alt + up/down
5
Q
CLI - how to open file folder on windows WSL
A
explorer.exe . (the last dot is the home directory)
6
Q
vs code peek defination
A
control + f12
7
Q
vs code - add cursor
A
Ctrl + Alt + Up arrow / Down arrow
8
Q
git ignore file name
A
.gitignore
9
Q
vs code - command plat
A
ctrl + p
10
Q
npm list all packages
A
npm list
11
Q
vs code - move line
A
alt + up/down
12
Q
npm install global package
A
npm install -g
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
14
Q
npm install packages
A
npm install
15
Q
ubuntu cli - create new folder
A
mkdir