-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Run python file in terminal should run unsaved file #22280
Comments
You can use VS Code tasks to accomplish that, add the following to {
"version": "2.0.0",
"tasks": [
{
"label": "Run Python Script",
"type": "shell",
"command": "${command:python.interpreterPath}",
"args": ["-c", "${selectedText}"],
"group": {
"kind": "build",
"isDefault": true
},
"presentation": {
"echo": true,
"reveal": "always",
"focus": false,
"panel": "shared"
},
"problemMatcher": []
}
]
} "Run task" command can be used to run the task, note you'll need to select all text before attempting to run the task. |
Thanks for the feature request! We are going to give the community 60 days from when this issue was created to provide 7 👍 upvotes on the opening comment to gauge general interest in this idea. If there's enough upvotes then we will consider this feature request in our future planning. If there's unfortunately not enough upvotes then we will close this issue. |
Thank you for submitting your feature request and everyone who considered it! Unfortunately, this issue did not receive enough votes over the allotted time, and so we are closing the issue. |
I have made a short unsaved script (around <20 line of code) and I wish I could just run and debug with python tools without saving it first. Is it possible?
The text was updated successfully, but these errors were encountered: