mirror of
https://github.com/LeCoupa/awesome-cheatsheets.git
synced 2026-01-29 14:48:01 -08:00
Compare commits
4 Commits
882da909b7
...
e03e93c93f
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e03e93c93f | ||
|
|
559d03ecf3 | ||
|
|
bea751612a | ||
|
|
0de5e8fef1 |
@@ -47,9 +47,10 @@ CTRL+X then ) # finish recording keyboard macro
|
||||
CTRL+X then E # recall last recorded keyboard macro
|
||||
CTRL+X then CTRL+E # invoke text editor (specified by $EDITOR) on current command line then execute resultes as shell commands
|
||||
CTRL+A then D # logout from screen but don't kill it, if any command exist, it will continue
|
||||
|
||||
BACKSPACE # deletes one character backward
|
||||
DELETE # deletes one character under cursor
|
||||
CTRL+T then Z # Minimizes the current session or sends the current session to the background.
|
||||
fg(foreground) # Maxmizes the current session
|
||||
BACKSPACE # deletes one character backward
|
||||
DELETE # deletes one character under cursor
|
||||
|
||||
history # shows command line history
|
||||
!! # repeats the last command
|
||||
|
||||
@@ -380,3 +380,14 @@ function_name()
|
||||
* We need not to specify the return type of the function.
|
||||
* Functions by default return `None`
|
||||
* We can return any datatype.
|
||||
### f strings
|
||||
* Short of "formatted string".
|
||||
* Allow us to to embed expressions inside string literals.
|
||||
* f-strings are denoted by "f" or "F" prefix before the string
|
||||
* Expressions are closed by curly braces '{}' with the f-string
|
||||
```
|
||||
name = "Alice"
|
||||
print(f"Hello, I am {name} and I am a programmer.")
|
||||
|
||||
```
|
||||
|
||||
|
||||
@@ -6,7 +6,8 @@
|
||||
|
||||
#### 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`+`Shift`+`N`: New window/instance
|
||||
- `Ctrl`+`W`: Close window/instance
|
||||
@@ -19,7 +20,7 @@
|
||||
- `Ctrl`+`C`: Copy line (empty selection)
|
||||
- `Ctrl`+`↓/↑`: Move line down / up
|
||||
- `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`+`]` / `Ctrl`+`[`: Indent / Outdent line
|
||||
- `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.
|
||||
|
||||
- [`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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user