Show Menu
Cheatography

Programming Cheat Sheet (DRAFT) by

Tools to bootstrap programming

This is a draft cheat sheet. It is a work in progress and is not finished yet.

Copilot hotkeys

CTRL + Enter
Show 10 solutions
Alt + \
Trigger inline suggestion

Git

git amend
git fetch origin --prune
git remote -v
git remote rm [remote repo name]
git ls-files –other –ignored –exclu­de-­sta­ndard
git checkout -b <br­anc­hna­me>
git diff <so­urc­ebr­anc­h> <ta­rge­tbr­anc­h>
 

VSCode tools

Code snippets
Settings -> User snippets

VSCode hotkeys

Alt +
Move line up, down
Ctrl+S­hift+N
New window­/in­stance
 

Docker

mysql service
[sudo] docker exec -it [conta­ine­r_name] mysql -u[use­rname] -p[pw]
create docker
docker run -d --name mysql -e MYSQL_­ROO­T_P­ASS­WORD= -e MYSQL_­USER= -e MYSQL_­PAS­SWORD= -p 3306:3306 mysql:­latest
docker compose
docker ps