You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you in advance for testing smart send in the new Python REPL.
Background Information
Smart send is a feature in VS Code Python extension where we "smartly" send minimum viable/executable code into the Python REPL when user shift+enter(Without explicit highlight/selection) to execute their Python code.
Smart send is now enabled for the newly launched experimental VS Code Native Python REPL.
Setup:
Add "python.REPL.sendToNativeREPL": true, to your settings. Feel free to use the settings UI: Type repl and toggle "on" to send Python commands to REPL.
Please make sure you are in the latest pre-release of the VS Code Python extension.
Steps:
Open Python file of your choice containing Python code (Please do not use Python2.7 as this has been officially outdated and will not work with Smart send and the underlying logic of using Python's standard library module AST)
Make sure you have added setting to send commands to native REPL in your VS Code insiders.
Shift+enter in multi-line code (such as in the middle of multi-line dictionary) and observe minimum executable amount of code is sent to native REPL with correct indentation.
Try this with other code block such as Classes, single line.
Shift+enter ON the line of class definition (where it would say def) should send the whole class, whereas shift+enter INSIDE the class such as print statement inside class should send that minimum executable code (print statement only in this case).
Make sure you are getting correct indentation.
The text was updated successfully, but these errors were encountered:
Refs: #23521
Reference to Smart Send itself: #21778
Complexity: 4
Create Issue
Thank you in advance for testing smart send in the new Python REPL.
Background Information
Smart send is a feature in VS Code Python extension where we "smartly" send minimum viable/executable code into the Python REPL when user shift+enter(Without explicit highlight/selection) to execute their Python code.
Smart send is now enabled for the newly launched experimental VS Code Native Python REPL.
Setup:
repl
andSteps:
The text was updated successfully, but these errors were encountered: