Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Run SectionNew to Visual Studio Code? Get it now.
Run Section

Run Section

Martin Zamba

|
217 installs
| (0) | Free
Locate section markers and execute the code between them in active terminal / REPL + some useful stuff
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Run Section

Locate section markers and execute the code between them in active terminal / REPL + some useful stuff

currently only 'useful stuff'

Features

  • Run Selection in Active Terminal | run-section.runSelection executes current selection, or current line if nothing is selected in active terminal. This is meant as a replacement for workbench.action.terminal.runSelectedText (default in VSCode action when you press ctrl+enter) which is buggy as of 2/2023 - current editor looses focus after invocation

  • Run Selection in Active Terminal, show the Terminal | run-section.runSelectionShowTerminal follows the logic of workbench.action.terminal.runSelectedText in a sense that on top of previous command also shows the active terminal. Afterwards it tries to refocus the active editor. This is however glitchy and fails if the load of the system is high. Due to limitations of VSCode API there is no workaround (AFAIK)

Known Issues

  • invoking run-section.runSelectionShowTerminal may result in editor loosing focus if there is a higher load on the system

Release Notes

v0.0.1

  • Initial release
  • 'Run Selection' command
  • 'Run Selection and Show Terminal' command

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft