A REPL extension for VS Code inspired by iron.nvim. Send code to any REPL directly from your editor.
- 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
Prosecco: Start REPL- Start a new REPL from configured profilesProsecco: Connect to running REPL- Attach to an existing terminalProsecco: Send Selection- Send selected text to REPLProsecco: Send File- Send entire file to REPLProsecco: Send Profile Binding- Execute a custom binding from your profile
| 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 |
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"
}
}
]
}name(required) - Display name for the profilecommand(required) - Command to start the REPLenv- Environment variables to setbindings- Named commands to send to the REPLprelude- Text prepended to all sendssendPrelude- 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!