Overview Version History Q & A Rating & Review
prosecco
A REPL extension for VS Code inspired by iron.nvim . Send code to any REPL directly from your editor.
Features
Start or connect to REPLs - Launch new REPL sessions or attach to existing terminals
Send code to REPL - Send selections, entire files, or custom bindings
Configurable profiles - Define REPL configurations per language (profile) with custom commands, environment variables, and preludes
Commands
Prosecco: Start REPL - Start a new REPL from configured profiles
Prosecco: Connect to running REPL - Attach to an existing terminal
Prosecco: Send Selection - Send selected text to REPL
Prosecco: Send File - Send entire file to REPL
Prosecco: Send Profile Binding - Execute a custom binding from your profile
Default Keybindings
Command
macOS
Windows/Linux
Send Selection
Cmd+Enter
Ctrl+Enter
Start REPL
Cmd+P S
Ctrl+P S
Connect to REPL
Cmd+P C
Ctrl+P C
Send File
Cmd+P F
Ctrl+P F
Send Profile Binding
Cmd+P B
Ctrl+P B
Configuration
Configure REPL profiles in your settings:
{
"prosecco.profiles": [
{
"name": "Python",
"command": "python3",
"prelude": "# Python REPL\n",
"bindings": {
"import numpy": "import numpy as np"
}
},
{
"name": "Node.js",
"command": "node",
"env": {
"NODE_ENV": "development"
}
}
]
}
Profile Options
name (required) - Display name for the profile
command (required) - Command to start the REPL
env - Environment variables to set
bindings - Named commands to send to the REPL
prelude - Text prepended to all sends
sendPrelude - Per-binding preludes
Full disclosure: this readme was AI generated, does the job for now. I have yet to write tests and I don't have much experience writing proper ts code. PRs, feedback, and suggestions welcome!