How to set up Python on Visual Studio Code
HTML-код
- Опубликовано: 18 май 2021
- How to setup Python on Visual Studio Code (vscode)
Install Python: www.python.org/
Install Visual Studio Code: code.visualstudio.com/
After installing python, open the command prompt/terminal, and type in python --version or py --version. If you have installed python successfully, you will see the version of python you have.
Open vscode, and create new file. Name it whatever you want, but be sure to include the .py extension.
On the left, click the extensions icon, and search for Python. Install the python extension by Microsoft. This will allow for Python support in vscode.
Then, search for code runner and install the extension. This will add a run button at the top right of your vscode. Clicking this button will run your python code.
To have code runner output to the terminal instead of the built-in output console, click the settings icon (gear icon) on the bottom left corner. Scroll down until you see Code Actions on Save. Click settings.json and the file will open.
Add this line inside the json file: "code-runner.runInTerminal": true,
After that, you are all set!
Website: www.kennyyipcoding.com/
Java Game Programming Projects Playlist:
• Java Game Programming ...
JavaScript Game Programming Projects Playlist:
• JavaScript Game Progra...
Subscribe for more coding tutorials 😄!
If you run python --version or run your python code in vscode and see this error message:
Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut...
Click the python installer again, and click modify, click next, and check "Add Python to Environment Variables", then click install.
Restart your computer afterwards and it should work now.
what do you mean python installer
@@maamarm46 Hi, when you download python from the website, it downloads an installer. You double click it to actually install python. Should be in your downloads folder.
This is because u are storing the file in other directory apart from C. For that u need to set the path variable, which is not shown in this video. Search some videos on RUclips on how to set path of python
why is this so difficult
Thank you Kenny,
I had this issue when merging my VSCode, very helpful.
Amazing Video.
Hey man, former Software Engineering student, now working a few years in cyber security department: Absolute great video. Very nice audio quality. I want to highlight how important it is for beginners to explain every single step i.e. "for me it says windows, so i download the windows version", "Click control-s to save it" etc. People usually have so many different backgrounds and when it comes to a video that is trying to board people on some new stuff this is really important :)
Hey I want to get into the same field what can I do to prepare?
Before studying it
@@sandvichenjoyer9453 are you talking about software engineer or cyber security?
I don't think you need any preparation software engineering. All you need is self-management and structure. If you can plan your day/week in advance and stick to learning times you'll make it. Regarding cyber security, I always recommend starting with an audit position in a larger company or as a service provider auditing different clients. You get familiar with lots of regulatory stuff and a lot of opportunities to see different architectures, systems etc. Afterwards I would go and try out some pentesting (hackthebox; Kali Linux etc. Do it for at least a year. Thats a good basis I'd recommend for everybody out there.
Thank you for saying " its the blue one, not the purple one " that was really helpful
Me too
when you are colorblinded blue and purple :
Life saver, didn't know that the purple one is for freaking C++ lol
@@aleksjagger9770 no you get everything in purple but it takes lot of space and all feautures are not free so not recommended.
@@aleksjagger9770 vsc isn't ide. it's code editor. you can write code in any language here.
Bro love this video. No useless talking , clear representation and flawless speech .
Still using this as a tutorial 2 years later. Thank you Kenny!
simple, informative, straight to the point nice job
Holy crap Kenny, you got yourself a sub. Friend referred me to Harvard's CS50 online course which I've been trying to study and follow along, but I could not for the life of me, get VSC set up for Python. The terminal just wasn't working for me and your video fixed it in 6 minutes. Well done dude.
I just started the class yesterday and was struggling with this as well lol
@@losc4927 lol same I started yesterday and the setting up is harder than the program itself XD
yo most of the videos are like 20 mins long, you are the best for keeping it straight to the point and keeping it short
haha that's the goal! 😁
Your a legend!!!! I was having issues with working python and you just solved all of them!! 👑
thank you so much ! not a 30min video with useless talk! great job!
Check out my html/css/javascript game tutorials!
how to code WORDLE: ruclips.net/video/ckjRsPaWHX8/видео.html
how to code SUDOKU: ruclips.net/video/S4uRtTb8U-U/видео.html
how to code CONNECT 4: ruclips.net/video/4ARsthVnCTg/видео.html
Also if you have time, check out the Python to Ruby code translator demo that I made :)
ruclips.net/video/DXiKAEBdDBg/видео.html
OMG! Thank you so much dude. Super simple. Start to Finish. I grew up with Juypter and I have been struggling with VSC for months. Your video helped a ton
thank you i was so confused on where to start at first helped me a lot
Thank you. Nice demonstration without any distracting music. : )
Comprehensive. Worth every single second!
Amazing, thank you for the tutorial. Just about what is needed and a little extra to make coding smoother for my beginner self.
Went into this video expecting having to configure stuff. But I just started up vscode, selected python as language, installed plugin and boom - it's working.
Nice vid tho!
This was very helpful for me as a beginner, thank you very much :) ❤
Very useful. Even in 2024. Was having so many issues as a beginner running my code in VS code I nearly changed ide's lol. Thank you
Tysm kind sir! I was into coding and tryna know how python works. As a beginner this really helped me to begin some tests! tysm again!
Thank you very much. You did a great job and helped me.
Thank you. Straightforward and easy to follow through.
Thank you man. That was amazingly helpful=)
Exactly what I was looking for. Thank you.
thx man, u solved A LOT of problems I had!!!
This video is very helpful..I've been facing problem in giving input to console..
Finally prblm solved😄
Very, very helpful. Thank you a lot!
You are a genius! Amazing video!
It's working for me, thank you!
I could not believe my eyes when I finally found a video that ACTUALLY WORKS😅
Thank you! It is now working!
Thanks for this! I could not figure out how to change the output!
Bro u r amazing!!!!!! :) keep uploading
Very helpful! Thank you so much!
Smart, subscribed 💯 thanks alot bud
I was burning my brain with that py files. I just runned as it was and still worked.
Thank you so much, this was clear and concise
Thanks a lot Man! You are amazing!
helped me so much! thanks man
Thank you man! much love!
thanQ very helpful video Kenny
Thank you man i was tryin to figure out why it wouldnt let me type and was goin nuts on it 😂
It was helpful. Thanks a lot
Thanks, your video was helpful.
Nice video, it's only because of this video I subscribed to your channel .
this deserved a subscribe
Thank you. This is very helpful
this is very helpful! thanks
Thank you very much sir !
Thank you. I understood this tutorial easily❤
Thank you! this video really help.
this video helped me thankyou
Thank you so much, this helped me a lot!
Easy enough to setup just frustrating to learn all these commands! It's overwhelming. You make it look so simple lol
2022 >>>>>>>>?????
Hey man, thank u so much.
Your Video was helpful, thank you
Thank you for this! I just got Vs code but said to install python when i had it already but you showing us the terminal part going up there it was hiden to me with the 3 dots. Pressed terminal did command prompt and there we go cx! Thank you!!!
Thanks man. 😊
You are awesome man
Thanks man!
thank you so much its help me a lot
thx soo muxh man..
This was a great video
thank you million times
Thanks! 🖤
Thank you brother
thank you so much!!
Excellent Mate
i want more tutorials of VS CODE. I hope u will upload. :)
thank you!
howdy - awesome - ilove it. BTW - do i need to take care of envs etc. etx.?
Thank you!!!!
strong work man
Thank you so much
Thank you a lot
excellent video!
thank you so so so much
GOod Video thanks
Bro I love you
Thank you
Thanks buddy
loved the video !
thank you
thanks dude
thanks man
thx from france
THanks!
you solve my bigest problem
thx bro
this was crisp
thankls man
thanks!
Is there any way to clean up the terminal output not to write the location of the file twice? Have mine in nested folders and the output gets buried...
thanks
very very thanksss
Hey man is there any way we can remove our directory in the terminal? So we are left with only our terminal name(and also i see your name has a colour,mine is the same color as the text). Help with those two would be great
Does using "py" as a command not work in Python version 3.11?
My windows10 powershell says no such file or directory why won't it show up like yours
interesting scenario to me. When I cheched for version using "Python --version" and "Py --version" I got two different versions?! Does anyone know why this is and does it need to be solved somehow?
Hi! I just want to know if there is any problem if I don't use 'python' and just use 'py' while coding?