About 940,000 results
Open links in new tab
  1. How to execute Python code from within Visual Studio Code

    May 1, 2015 · First: To run code: use shortcut Ctrl + Alt + N; or press F1 and then select/type Run Code, or right click in a text editor window and then click Run Code in the editor context menu; …

  2. How to run a Python file in Visual Studio code from the terminal?

    Nov 28, 2022 · So if you need to manually type commands in the terminal to run the code. You can directly copy the above command. If you use a virtual environment or have system …

  3. How can I run Python code selected in the active editor in VS Code?

    Apr 11, 2018 · If you highlight some code, you can right-click or run the command, Run Selection/Line in Python Terminal. We are also planning on implementing Ctrl-Enter to do the …

  4. python - How to run a few selected lines of code in vscode?

    Dec 21, 2019 · Select one or more lines, then press Shift+Enter or right-click and select Run Selection/Line in Python Terminal. This command is convenient for testing just a part of a file. …

  5. Visual Studio Code not running Python - Stack Overflow

    [Done] exited with code=1 in 0.034 seconds. It's a very simple Hello, World! program that doesn't really need much. Why is Visual Studio Code not letting me run a Python file? This is where …

  6. How do I find/excute Python Interactive Mode in Visual Studio …

    Nov 7, 2020 · In Visual Studio Code, you can enter the Python interactive window in the following places: Option 1. F1 → Python: Create Python Interactive Window. This is the Python …

  7. Run Code vs Run Python File in Terminal for VSCODE

    Jan 16, 2021 · To run your code when it says "ModuleNotFoundError": Right-click, go down to run python file, and click on "run python file in terminal". I was stuck on this for hours. Every …

  8. Key shortcut for running python file in VS code - Stack Overflow

    Apr 27, 2022 · The button just runs the file in a Python terminal, the default command associated with Ctrl+F5 will run the file in the Python debugger, just with the debugging turned off. – Ajean …

  9. Current shortcut to run Python in VS Code - Stack Overflow

    Nov 16, 2021 · I use VS Code on a Mac laptop. If I'm using Python I can run the code by pressing the little arrow in the top right, However, I can't seem to find a keyboard shortcut for this. There …

  10. Visual Studio Code is not showing the output of Python

    Mar 28, 2018 · I am trying to use Python with Visual Studio Code. The downloaded version of Python is 3.6.4. I have installed the Python extension in Visual Studio Code and have followed …

Refresh