Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>Python Smart ExecuteNew to Visual Studio Code? Get it now.
Python Smart Execute

Python Smart Execute

INWT Statistics GmbH

|
1,282 installs
| (0) | Free
Send code selection to REPL. Includes decorators in selection and jumps to beginning next line.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Python Smart Execute

Description

This is a send to REPL implementation which solves the following problems with the current behavior of the Python extension in VSCode:

  • decorators are selected automatically
  • the cursor jumps to the beginning of the next non empty line
  • when in debug mode, selection is sent to the Debug Console

Smart execute means that when you hit Ctrl+Enter we look at the line your cursor is currently in and make a decision if we think you better execute the complete block in the REPL instead of just that line.

smart-execute.gif

Keybindings

  • ctrl+enter: (Smart) Execute selection or line in interactive window or debug console and step
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft