Let's build an extension to customize VSCode-terminal interaction
I got inspired by this video from 3b1b
youtube channel and how he manages his interactive workflow with some custom sublime plugin.
I decided to make my own version with a VSCode Extension.
The user simply selects some text or moves the curser to a line and press shif+Enter
the extension will copy the line/seletion
in a integrated terminal (last used terminal).
Note: if the current line is a comment it will call some special function
run_line_at({fileName},{lineNumber})
you should implement it yourself 😅
- shift+Enter -> copy Selection/line to terminal
- ctrl+n -> new ipython teminal
to make an installable .vsix
extension file
- install
vsce
globally with npm - run
vsce package
- Be smarter at terminal selection.
- Draft some Python tools as a template for custom
run_line_at
. - find ways to interact with external terminals.
- add other commands (run_util_here, run_current_section)