How Can I Create A Workspace In Visual Studio Code?
Solution 1:
I am not sure how you try to run this program, but you can just go to menu View → Terminal and type python your_program.py
in TERMINAL from the folder where your program is located.
And please check if you have not accidentally installed Visual Studio instead of Visual Studio Code (those are two completely different programs).
Solution 2:
VSCode workspaces are basically just folders. If you open an empty folder in VSCode it will get treated as a workspace, and you can add any scripts you want to it. VSCode will create a new hidden folder in the folder you chose that will hold settings for the workspace. For python, make sure you install the python extension (just grab the one with the most downloads) and follow the instructions there to make sure your python environment is properly configured. If you're using git, you might want to add that hidden folder to the gitignore.
Post a Comment for "How Can I Create A Workspace In Visual Studio Code?"