question

MetehanSelvi-8174 avatar image
0 Votes"
MetehanSelvi-8174 asked AnnaXiu-MSFT commented

Run python code without create/open a project

In VS 2019, I was can run python code with debugging by "right-click > open with VS > run with debugging". But now, in the VS 2022, I have to create/open a project to run my codes, how can I run a single code without a project solution?

VS 2022: Project
205177-start-is-active.png

VS 2022: Single file
205232-start-is-inactive.png


vs-debugging
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi, how you open your python code with Visual Studio?
Can you open with VS from project folder instead of .py file?
If you want to debug your code without a project or solution, you need to set the file as Startup item.

0 Votes 0 ·

0 Answers