About 1,020,000 results
Open links in new tab
  1. python - How to run a few selected lines of code in vscode?

    Dec 21, 2019 · As of Jan 21, 2025, in latest version of my VSCode, I can just highlight a portion of the python code and click on Run Code button on top right corner, and the code runs only the …

  2. How to execute Python code from within Visual Studio Code

    May 1, 2015 · I really like the look and feel/usability/features of Visual Studio Code, but I can't seem to find out how to run my Python code, a real killer because that's what I program …

  3. 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 …

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

    Nov 7, 2020 · If you have the Python extension, you can use the Python Interactive feature (this is a IPython / Jupyter console, which can run parts of your code as 'cells', i.e., snippets of code …

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

    Apr 27, 2022 · In VS Code, I'm writing python code. I was wondering if there is a key shortcut to run the file instead of pressing the run button in the right top corner of the screen constantly.

  6. Visual Studio Code not running Python - Stack Overflow

    I'm using the newest version of Visual Studio Code and Python 3.6 (64 bit) on Windows 10. I have the "Python" extension installed (the one made by Microsoft). Every time I try to run …

  7. 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 …

  8. How to make VSCode always run main.py - Stack Overflow

    Dec 18, 2019 · I am writing my first library in Python, When developing I want my run code button in VS Code to always start running the code from the main.py file in the root directory.

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

    Mar 28, 2018 · Using the Python Extension Run/Debug commands Notes I recommend reviewing the official Visual Studio Code Python documentation and tutorial. That provides several of the …

  10. 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 …

Refresh