VsCode Keyboard Shortcut To Run Python In The Terminal - Jason Murray
Có thể bạn quan tâm
- About
- Blog
- Photos
- Now
- Resume
- Contact
pythonvscode
tech
224 Words
2020-07-28 13:39 -0500
I don’t like moving my fingers off the keyboard. No mouse, no arrow keys, no track pad. Productive use of time dictates finger should not move far from the home-row keys. This is why I enabled the vim extension.
To run a Python script within a terminal in vsCode you have to click the play button in the upper right corner of the screen:

Remember rule #1, I don’t want to move my fingers off the keyboard and the play button is too far away…
There is no default keyboard shortcut to replace pressing the green play button. To create one, click the gear in the lower left corner of the screen and select Keyboard Shortcuts:

Search for run python in terminal and click the Python: Run Python File in Terminal. Create a keyboard shortcut sequence that works for you. In my example, I use CTRL+r - again I want something that does not require me to move my fingers too far:

Switch to a Python tab and press ctrl+r to run Python in the terminal window.
Note: I don’t know why, but many other Google searches for this same topic yield a lot of results that are far too complicated.
Since I switch back and forth between editor and terminal, I also created a shortcut to toggle between the two by mapping ctrl+;:

Từ khóa » Visual Studio Code Run Python Shortcut
-
How To Execute Python Code From Within Visual Studio Code
-
Python In Visual Studio Code
-
Setup Visual Studio Code Python Run Keyboard Shortcut - YouTube
-
What Is The Keyboard Shortcut To Run Selected Python Code In Visual ...
-
How To Run Code In VS Code - Alphr
-
How To Get Started With Python In Visual Studio Code - DigitalOcean
-
Is There Any Keyboard Shortcut To Run Code From Visual Studio Code?
-
User Keyboard Shortcut For 'Run Selection/Line In Python Terminal ...
-
Python Support In Visual Studio On Windows | Microsoft Docs
-
What Is The Keyboard Shortcut In VS Code To Run A Python File? - Reddit
-
Shortcut Key To Run Python Program In Vs Code
-
Python With Visual Studio Code On MacOS - Medium
-
Advanced Visual Studio Code For Python Developers
-
How To Stop Execution Of Python Script In Visual Studio Code