denoland / vscode_deno

Visual Studio Code plugin for Deno
https://marketplace.visualstudio.com/items?itemName=denoland.vscode-deno
MIT License
1.5k stars 146 forks source link

Send to REPL/Terminal #1066

Open naxels opened 9 months ago

naxels commented 9 months ago

Is your feature request related to a problem? Please describe.

When working in VSCode with Python, Jupyter, F#, Clojure, I can hit a keyboard combo (usually CMD + Enter on Mac) and the code is either executed intelligently in a REPL/Notebook tab (like Clojure, Jupyter) or send to a REPL terminal (like Python, F#)

Currently I have a separate terminal tab in VSCode with deno repl and copy/paste the code to execute

Describe the solution you'd like

I would love to have the keyboard combo send my highlighted code to a REPL/Terminal like Python, where if no REPL terminal is running, it will start one & execute, else it will send the highlighted code (or line if no highlight) to the REPL.

This enables rapid REPL driven development :)

Thank you for considering!

janckerchen commented 1 week ago

vscode offers a native solution, InteractiveWindow, that improves the REPL + notebook experience and currently only supports python and jupyter. Jupyter Code Cells Plot Viewer

If vscode-deno can achieve the following two things, it is a perfect environment for deno newbies to get started, and it is worth mentioning that deno's zero-configuration mode is a perfect match for notebooks.

  1. Directly interfaces to the vscode notebook api, avoiding the need to install the jupyter plugin (and the entire python environment) (A good attempt has been made by redking00)
  2. Implement InteractiveWindow-like functionality.