Trouble opening files in python with VS Code

后端 未结 3 2061
情书的邮戳
情书的邮戳 2020-12-06 15:49

I can\'t seem to open basic text files when I run a python script in VS Code, the code runs fine when I use it in Idle but VSCode will give me a FileNotFound error, is there

3条回答
  •  無奈伤痛
    2020-12-06 16:06

    In your VSCode for Windows

    File --> Preferences --> Settings --> (User)Extensions --> Python -->

    Terminal: Execute In File Dir --> Check It

    or

    File --> Preferences --> Settings --> Search Settings --> python.terminal.executeInFileDir

提交回复
热议问题