VS Code to Copy and Paste to Terminal

VS Code to Copy and Paste to Terminal

March 10, 2025

From Mehdi’s video. While he shows how to do it with VS Code, you can do the same thing with other IDEs.

 { 
"key": "shift+alt+k", 
"command": "workbench.action.terminal.runSelectedText" 
},

Use this with VS Code to copy and paste the selected text into the terminal. This is good for SQL (ex. duckdb/postgres) though I can see this with other applications like Python’s REPL.