VS Code opens pycharm during code execution

Asked

Viewed 66 times

0

Good afternoon,

Running the command below on the VSCODE terminal, it opens pycharm to execute such a command, not running on VSCODE itself.

inserir a descrição da imagem aqui

I’ve already uninstalled the test pycharm. Then when executing the command it executes the code correctly, but when typing the answer, this terminal opened externally, is terminated.

  • 4

    Tried to make python area_circulo_v3.py?

  • 2

    You probably defined the PyCharm as the program that should open and/or run files .py. If that really was it, you should locate the script you want to open with Vscode, right-click, click on the option Abrir com, and choose the program VSCode. From that moment on, all scripts .py will be opened by VSCode.

  • 1

    You go in the folder where the.py file is and give code . that it will open that folder inside the visual studio and inside you can simply run the program. But you can just type in your terminal: python area_circulo_v3.py and it will execute the code also instead of opening the pycharm.

1 answer

0

Do you use in a virtual environment? If not, it should be, because your pycharm would be the default interpreter for files outside of venv(virtual environment), try to create one in your vscode see if it resolves, try to create a separate folder too, of vscode files and pycharm files not to conflict

Browser other questions tagged

You are not signed in. Login or sign up in order to post.