2

I am new to Visual Studio Code. I am using Windows.

When I hit the "Run Code" button at the top right, I want my .py file to run from the current directory.

When I hit Run right now, I get the Terminal window > Windows Powershell, which prints:

PS C:\Users\zack> python -u "c:\Users\zack\Desktop\test.py"

In other words, I want the .py file to run as if I did "cmd" then "cd directory".

I saw this question but I don't know where to type this.

I also saw this question and enabled Execute in File Dir. Didn't change anything.

mkrieger1
  • 19,194
  • 5
  • 54
  • 65

0 Answers0