mirror of
https://github.com/LeCoupa/awesome-cheatsheets.git
synced 2026-01-29 14:48:01 -08:00
Compare commits
8 Commits
75ba4543ea
...
52977e03d6
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
52977e03d6 | ||
|
|
559d03ecf3 | ||
|
|
bea751612a | ||
|
|
d143c60246 | ||
|
|
44371217a9 | ||
|
|
d63d75bb28 | ||
|
|
94087440e5 | ||
|
|
cf584f84f7 |
@@ -185,7 +185,6 @@ width="" <!-- Describes the width of th
|
|||||||
<!-- Some other useful tags -->
|
<!-- Some other useful tags -->
|
||||||
|
|
||||||
<canvas></canvas> <!-- Allows to draw 2D shapes on the web page with the help of javascript -->
|
<canvas></canvas> <!-- Allows to draw 2D shapes on the web page with the help of javascript -->
|
||||||
<keygen> <!-- Represents a control for generating a public-private key pair -->
|
|
||||||
<map></map> <!-- Specifies an image map -->
|
<map></map> <!-- Specifies an image map -->
|
||||||
|
|
||||||
<!-- Collective Character Obejcts -->
|
<!-- Collective Character Obejcts -->
|
||||||
|
|||||||
@@ -31,14 +31,18 @@ git branch # shows all the branches (current branch is s
|
|||||||
git branch -a # shows all the branches local and remote
|
git branch -a # shows all the branches local and remote
|
||||||
|
|
||||||
git branch my-branch # creates my-branch
|
git branch my-branch # creates my-branch
|
||||||
|
git checkout -b my-branch # create and switches to my-branch
|
||||||
|
git switch -c my-branch # create and switches to my-branch
|
||||||
git branch -d my-branch # deletes my-branch
|
git branch -d my-branch # deletes my-branch
|
||||||
git checkout my-branch # switches to my-branch
|
git checkout my-branch # switches to my-branch
|
||||||
|
git switch my-branch # switches to my-branch
|
||||||
git merge my-branch # merges my-branch to current branch
|
git merge my-branch # merges my-branch to current branch
|
||||||
git push origin --delete my-branch # delete remote branch
|
git push origin --delete my-branch # delete remote branch
|
||||||
git branch -m <new-branch-name> # rename the branch
|
git branch -m <new-branch-name> # rename the branch
|
||||||
git checkout --orphan <branch_name> # checkout a branch with no commit history
|
git checkout --orphan <branch_name> # checkout a branch with no commit history
|
||||||
git branch -vv # list all branches and their upstreams, as well as last commit on branch
|
git branch -vv # list all branches and their upstreams, as well as last commit on branch
|
||||||
git branch -a # List all local and remote branches
|
git branch -a # List all local and remote branches
|
||||||
|
git restore # Restore specified paths in the working tree
|
||||||
|
|
||||||
git cherry-pick <commit_id> # merge the specified commit
|
git cherry-pick <commit_id> # merge the specified commit
|
||||||
git cherry-pick <commit_id_A>^..<commit_id_B> # pick the entire range of commits where A is older than B ( the ^ is for including A as well )
|
git cherry-pick <commit_id_A>^..<commit_id_B> # pick the entire range of commits where A is older than B ( the ^ is for including A as well )
|
||||||
|
|||||||
@@ -105,7 +105,7 @@ gu$ make lowercase until end of line
|
|||||||
<< indent line one column to left
|
<< indent line one column to left
|
||||||
== auto-indent current line
|
== auto-indent current line
|
||||||
ddp swap current line with next
|
ddp swap current line with next
|
||||||
ddkp swap current line with previous
|
ddkP swap current line with previous
|
||||||
:%retab fix spaces / tabs issues in whole file
|
:%retab fix spaces / tabs issues in whole file
|
||||||
:r [name] insert the file [name] below the cursor.
|
:r [name] insert the file [name] below the cursor.
|
||||||
:r !{cmd} execute {cmd} and insert its standard output below the cursor.
|
:r !{cmd} execute {cmd} and insert its standard output below the cursor.
|
||||||
|
|||||||
@@ -6,7 +6,8 @@
|
|||||||
|
|
||||||
#### General
|
#### General
|
||||||
|
|
||||||
- `Ctrl`+`Shift`+`P`, `F1`: Show Command Palette
|
- `Ctrl`+`Shift`+`P`, `F1`: Show Command Palette
|
||||||
|
- `Ctrl`+`Shift`+`T`: Open last closed tab
|
||||||
- `Ctrl`+`P`: Quick Open, Go to File
|
- `Ctrl`+`P`: Quick Open, Go to File
|
||||||
- `Ctrl`+`Shift`+`N`: New window/instance
|
- `Ctrl`+`Shift`+`N`: New window/instance
|
||||||
- `Ctrl`+`W`: Close window/instance
|
- `Ctrl`+`W`: Close window/instance
|
||||||
@@ -19,7 +20,7 @@
|
|||||||
- `Ctrl`+`C`: Copy line (empty selection)
|
- `Ctrl`+`C`: Copy line (empty selection)
|
||||||
- `Ctrl`+`↓/↑`: Move line down / up
|
- `Ctrl`+`↓/↑`: Move line down / up
|
||||||
- `Ctrl`+`Shift`+`K`: Delete line
|
- `Ctrl`+`Shift`+`K`: Delete line
|
||||||
- `Ctrl`+`Enter` / `Ctrl`+`Shift`+`Enter`: Insert line below / above
|
- `Ctrl`+`Enter` / `Ctrl`+`Shift`+`Enter`: Insert line below / above
|
||||||
- `Ctrl`+`Shift`+`\`: Jump to matching bracket
|
- `Ctrl`+`Shift`+`\`: Jump to matching bracket
|
||||||
- `Ctrl`+`]` / `Ctrl`+`[`: Indent / Outdent line
|
- `Ctrl`+`]` / `Ctrl`+`[`: Indent / Outdent line
|
||||||
- `Ctrl`+`Home` / `End`: Go to beginning / end of file
|
- `Ctrl`+`Home` / `End`: Go to beginning / end of file
|
||||||
@@ -136,7 +137,7 @@
|
|||||||
|
|
||||||
- [`Wrap Console Log`](https://marketplace.visualstudio.com/items?itemName=midnightsyntax.vscode-wrap-console-log): Wrap to console.log by word or selection.
|
- [`Wrap Console Log`](https://marketplace.visualstudio.com/items?itemName=midnightsyntax.vscode-wrap-console-log): Wrap to console.log by word or selection.
|
||||||
|
|
||||||
- [`Bracket Pair Colorizer`](https://marketplace.visualstudio.com/items?itemName=CoenraadS.bracket-pair-colorizer): Allows matching brackets to be identified with colours.
|
- [`Bracket Pair Colorizer`](https://marketplace.visualstudio.com/items?itemName=CoenraadS.bracket-pair-colorizer): Allows matching brackets to be identified with colours.
|
||||||
|
|
||||||
## My Settings
|
## My Settings
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user