Jotting one man's journey through software development, programming, and technology
◀️ Home
A collection of useful VS Code shortcuts to boost your productivity.
Click (or select) a line (or lines), then type:
option (⌥) + arrow key (⇧)
Click (or select) a line (or lines), then type:
option (⌥) + shift (⇧) + arrow key (⬇️)
option (⌥) + mouse-click
Select a specific text, then type:
command (⌘) + D
Select a specific text, then type:
command (⌘) + shift (⇧) + L
command (⌘) + P
command (⌘) + shift (⇧) + P
command (⌘) + shift (⇧) + /
Every time you run Python code, the terminal will clear first, so you always see fresh and clean output.
"code-runner.executorMap": {},
and the languages you will be coding in.This setting in VS Code is used by the Code Runner extension to define custom command-line instructions for running different programming languages. The executorMap is a JSON object where keys are programming languages (e.g., “python”, “javascript”) and values are the commands used to execute code for those languages.
By changing:
"code-runner.executorMap": {
"python": "python -u",
},
To:
"code-runner.executorMap": {
"python": "clear && python -u",
},
clear
) before running the Python script.&&
ensures that python -u
runs only if clear is successful.-u
forces Python to run in unbuffered mode, meaning output is printed immediately.Scroll down and select ‘Code-runner: Run in Terminal’.