-
Notifications
You must be signed in to change notification settings - Fork 0
/
most used shortcut.txt
112 lines (104 loc) · 3.83 KB
/
most used shortcut.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
================ vs code short =======================
1) clt+p = search bar,
2)SHIFT + Alt + A = BLOCK COMMENT
3) CLT + / = SINGLE LINE COMMENT
4)CLT + MOUSE CLICK = ADD TEXT LOCATION
5)CLT + Z = UNDO , CLT + y = redo,
6) shift + Alt + up/down arrow= paste line
7)Alt + z = word wrapping off on
8)Alt + arrow up/down = move line
9)select and F2 and changle text and enter,
10)shift click and select text
11)clt + d = select match word next one,
12)shift+clt+ l = select match word all,
*)end = last line,
*)start = first line,
*)clt + , = settings
*)Alt+clt +↑ / ↓ = cursor make ****
*)Ctrl+/ Toggle line comment *****
*)Shift+Alt+A Toggle block comment *****
Ctrl+G Go to Line... ***
Ctrl+P Go to File... ***
Ctrl+F Find ******!
Ctrl+H Replace *****!
Ctrl+L Select current line ***
Ctrl+Shift+T Reopen closed editor *****
Ctrl+K P Copy path of active file ******!
Ctrl+K R Reveal active file in Explorer ******!
Ctrl+Shift+X Show Extensions *****!
Ctrl+Shift+H Replace in files *****!
Ctrl+` Show integrated terminal *****!
Alt+g = Create new terminal
================= cmd =====================
cd folderName,
cd ../..
ls,pwd,mkdir rmdir
*)mkdir newFolderName = new folder banate,
*)rmdir nameFolder = empty folder delete krte,
*)rmdir /s folderName = delete folder with file, (y/n)
=================== git ==========================
git reset (--hard,head~1,filename)
git branch -a,checkout -b newName, branch -d deleteName
*).gitignore = *.png / name.png/arfan /dir == dir/ = inner dir shoho, /static/dir = exact inner only
*)git rm --cached file.txt
)git commit -a -m "direct commit"
git config --list
(--version,.gitignore,init,status,add,commit -m,clone,pull,checkout -f/branch,fileName,reset,config)
git push origin master --force = delete commit and hard push in remote,
git clone
git push -all = all branch push into remote
git add
git commit
git reset (filename) = unstage hobe file,
git branch
git checkout = branchName / -f = reset to last commit *)git checkout filename
git push
git pull
*)git config --global user.name
*)git clean -f = untrack file remove all, not folder in file untrack
*)git clean -f -n = untrack file remove all show,
==================== Yarn important =====================
creat react-app,add,remove,upgrade,init,install,time,-v,yarn ls,outdated,bootstrap@2.3,start
,global add/remove/upgrade bootstrap,check,import,scripts,
yarn global bin
yarn check = yarn.lock and package.json match with package File,
yarn import = if bychance delete yarn.lock then this will with package.json all dependency
yarn global add package
yarn start = run project
yarn ls = see dependency list of your project
yarn outdated loadash = checkout particular dependency
yarn upgrade bootstrap@5.0 = update
yarn create react-app appname
yarn gitty update message
yarn init/ init -y = package.json
time yarn add bootstrap / bootstrap@2.3.3 = add package with yarn + time
yarn --version/-v
"scripts":{
"dev":"nodemon index.js"
new updated :
------------------------
run build
rm -R node_modules/ && rm package.json && rm yarn.lock = remove this
yarn add jquery angular = add multiple,
yarn outdated = checkout outdated version
yarn --help/help = list of yarn cmd
yarn global add package = must in this order
yarn global bin = global location find C:\Users\Asus\AppData\Local\Yarn\bin
yarn add gulp -D = development environment
yarn check = yarn.lock and package.json match with package File,
yarn import = if bychance delete yarn.lock then this will with package.json all dependency
"scripts":{
"dev":"nodemon index.js"
} == yarn run dev = this will run index.js in console
# CREATE YARN.LOCK FILE
yarn import
====================
NPM Command :
---------------------
npm start
npx create-react-app my-app --use-npm / --use-yarn
npm global install/uninstall app-name
npm install lodash --save
--save-dev
npm update lodash --save
npm install -g live-server