Hey everybody. So this tutorial is a long one, but we cover just about anything you'd want to know about Python development within VSCode. Timestamps for topics in this tutorial: Installation - 1:11 Python Extension - 6:21 Switching Interpreters - 10:16 Changing Color Themes - 13:08 VSCode Settings - 17:12 Set Default Python - 22:24 Using Virtual Environments - 25:52 IntelliSense - 30:28 Code Formatting - 33:08 Code Linting - 38:01 Code Runner Extension - 40:45 Git Integration - 49:05 Debugging - 58:15 Unit Testing - 1:02:38 Zen Mode - 1:10:42 If I missed anything then just let me know. Hope you're all having a great week!
@SatansFlipFlop Linux is going to be very similar to the other videos apart from the installation, so I would recommend looking at their installation documentation for Linux: code.visualstudio.com/docs/setup/linux And once it's installed then you can follow along with the MacOS version and it will be almost exactly the same. The only difference is you will use Ctrl any time I use Cmd for a keyboard shortcut.
Hi, Corey, thanks for this amazing video. Finally, my setup was complete. It took me a whole day but I am totally happy with the results. I just have one question. Can you tell me how to use 'relative paths' in vscode? I have a folder opened in my workspace. Inside it, I have two folders - 1. Data, 2. Notebooks. I am trying to read a CSV file in a pandas dataframe where I used a relative path - pd.read_csv( '../Data/tweets.csv' ). It's working fine when I am running the jupyter notebook on my browser but it's not working when I am running it using vscode. Can you help me with this? Thanks for making our life easier. Love all of your videos.
For a complete beginner user of VS Code and currently self-learning to program this was an incredibly useful and in depth set up of VS Code. Thank you so much!
I never comment on videos, but I just had to after working halfway through this video. This is the BEST tutorial on VS Code I've found. Corey, your commitment to high quality tutorial videos is amazing! Thank you for all you do!
On your survey, I vote for short videos. BUT, man, at the same time, no matter what the video's length you create. It is ALWAYS nice to watch. Thank you very much for share your knowledge with us and make our learning process easy.
Thanks. I actually created that poll because of this video. It came out longer than I planned, so I figured I’d check if people wanted long videos or short. After this I’ll definitely start creating more series whenever I can and it makes sense.
2 years later and I am still using this video to set up my VSCode environment. Thanks Corey, now that I'm studying DJango in my spare time, the git repository should be very well tweaked. That's why I'm setting up my env again
Hi Corey, I've seen several of your videos already and I've got to say your teaching skills are second to none. I was moving from vim and Sublime to start using VSC and when I saw you had a video to setup VSC for Python I got excited. You are one of the best out there teaching people how to become proficient with Python. Keep up the good work!! Thanks for sharing the knowledge.
The best tutorial you can find on RUclips for coding Python with VS Code. The introduction of code runner solves the annoying redundant output for me! Thanks a lot! Subscribed!
First time I've gone through anything code related. Happy to have found this setup walkthrough. Amazing walkthrough. Much appreciated. Wish me luck y'all.
Thanks! Is it the first time you've used a Mac for development? I've been using one for a few years now and really enjoy them. I love having access to Bash via the terminal, but judging from the video the Windows YT channel released a couple weeks ago, they're going to keep improving the Bash experience there as well: ruclips.net/video/8gw0rXPMMPE/видео.html
I recently started learning Python. While searching for Python videos, came across your channel. @Corey Schafer: You are doing an unbelievable work to help others! Fluency of your presentation is the key I guess. I would not even comment on your depth of knowledge. Great skills. Thanks for all the help through your videos!
Mr. Schafer: This is one of the most helpful and useful tutorial videos that I have come across in quite some time. I have booked marked it for future reference. Many thanks.
Another great video. Very thorough and very clear. It’s obvious that you put a lot of preparation into this and it’s very much appreciated. The video demonstrates that VSCode provides a feature rich development environment. Thanks!!
Not gonna lie, this tutorial was superb. Concise and to the point. So much information of great value. I learned so much! Thank you very much, Sir! Now I just have to find a tut on "Java and VS Code" with similar quality and I'm all set :D
Hi, First I'll like to give thumbs up for this video. It is very useful for beginners. I saw your video and notice 2 things that might you want to try. 1. It is a little bit tedious to run code in the terminal with right-click again and again. So there is setting for code-runner that you can turn on always run file in terminal. 2. For GIT management, try Git Lens as it gives you more control over git. I personally recommend it to everyone and once you tried, tell me how it feels.
This is very thorough and clear. As always, thanks for taking us through step by step, and skipping things that might be trivial. I started with Atom as my text editor, because I loved the Hydrogen package for quick prototyping. But as I mature in my software development journey, and I require more debugging functionality and I run of my scripts from the terminal. VSCode enables me much more in this regard, without something that feels so heavy and onerous to learn. Moreover, VSCode makes switching my Python Interpreters much easier!
Corey !! seems like you are born to make our life easier ... Again, please get inside the world of data analytics .. Python now a days also includes numpy, pandas, Matplot and seaborn .. it would be really nice to hear about these things from you
Thank you so much for this, has helped a lot setting up VSC and I am using it now as my main editor for Python. Keep up the good work I am now doing your Python video's.
I didn't understand why you installed autoPEP8 (Black) and pylint within the venv. I think that must be part of VSCode configuration and not project dependent, right?
I'd like to add to the virtual environment that you can have two different environments running at the same time in the terminal and at the bottom left. When you fire up the program, by default it will set the terminal to the environment you have selected in the corner. This option can be overridden. Also, make sure when installing the packages to check whether pip list isn't showing something fishy because there's a bug where it still thinks it's in another environment.
Spectacular!! this video solved lots of my problems. Thanks a lot. but if I were you, I would break down a long video into videos with specific subject (issue, topic) sorted in a playlist, then you could have higher view.
Hey corey, first thank you soo much for all your videos. They are the most informative well documented tutorials in RUclips. Is it possible if you do a django web application project for personal portfolio with blog section similar to the django project series you did before?
Wow, can't really take in you did one for windows and one for mac. It is just too GREAT!! One question. I don't have Debug in my menu at the top. Is that an extension?
Hi Corey, Spyder has this really friendly color theme creater. I find that I really enjoyed one color scheme I made through Spyder and is one of the biggest reasons why I still use Spyder. Would you happen to be able to explain where I can create my own theme on VS if it is simple enough?
Hate to seem cheap ... but is it free? I know you said it was free, but do you have to buy other additions too? If it is free does that mean they surveil you and your coding habits?
Thanks so much, Corey for the detailed video, I have one detail to point out and one question, I think that by the time I watched this video VScode already have done some changes/upgrades on their program, e.g. the button in the top that runs the code in the terminal is already there now without adding the CODE RUNNER extension, in that case, I still would like to make the change on the integrated terminal that shows in a cleaner way the output of the python code. If you are aware of this or have an update video about that I will really appreciate if you can point me to it, or if you know which setting should I look into in VScode will be really appreciated? Great stuff from you as always! and take care.
Hey Ho, really great Tutorial and thank you for the Help. I come to you with one question doe: at 37:10 you are showing us the use of formatters - is there a way to personalize the way it formatts the code? and if yes is it advisable? Thank you again and have a great day :)
Thanks for this vid and this looks like a nice dev environment. I won't really switch to it though because of telemetry. There is also VSCodium which removes all Microsoft branding/telemetry before compiling but unfortunately it has no control over telemetry sent by individual extensions, including the python extension.
Hey Corey, loved this video. Could you do something similar perhaps for R? I have been using RStudio for the R code and would be great if I could have it all in one place.
Hey everybody. So this tutorial is a long one, but we cover just about anything you'd want to know about Python development within VSCode. Timestamps for topics in this tutorial:
Installation - 1:11
Python Extension - 6:21
Switching Interpreters - 10:16
Changing Color Themes - 13:08
VSCode Settings - 17:12
Set Default Python - 22:24
Using Virtual Environments - 25:52
IntelliSense - 30:28
Code Formatting - 33:08
Code Linting - 38:01
Code Runner Extension - 40:45
Git Integration - 49:05
Debugging - 58:15
Unit Testing - 1:02:38
Zen Mode - 1:10:42
If I missed anything then just let me know. Hope you're all having a great week!
@SatansFlipFlop Linux is going to be very similar to the other videos apart from the installation, so I would recommend looking at their installation documentation for Linux:
code.visualstudio.com/docs/setup/linux
And once it's installed then you can follow along with the MacOS version and it will be almost exactly the same. The only difference is you will use Ctrl any time I use Cmd for a keyboard shortcut.
please make a video to convert csv file to text in pycharm
Well thought through video, thank you very much.
Hi, Corey, thanks for this amazing video. Finally, my setup was complete. It took me a whole day but I am totally happy with the results. I just have one question. Can you tell me how to use 'relative paths' in vscode? I have a folder opened in my workspace. Inside it, I have two folders - 1. Data, 2. Notebooks. I am trying to read a CSV file in a pandas dataframe where I used a relative path - pd.read_csv( '../Data/tweets.csv' ). It's working fine when I am running the jupyter notebook on my browser but it's not working when I am running it using vscode. Can you help me with this? Thanks for making our life easier. Love all of your videos.
For a complete beginner user of VS Code and currently self-learning to program this was an incredibly useful and in depth set up of VS Code. Thank you so much!
I never comment on videos, but I just had to after working halfway through this video. This is the BEST tutorial on VS Code I've found. Corey, your commitment to high quality tutorial videos is amazing! Thank you for all you do!
Thanks! Glad you enjoyed it!
@@coreyms Can you do more?
You are a great teacher!
Is this better then kite kite hit be so crazy editors plug ins are not installing on my Mac please help.
On your survey, I vote for short videos. BUT, man, at the same time, no matter what the video's length you create. It is ALWAYS nice to watch. Thank you very much for share your knowledge with us and make our learning process easy.
Thanks. I actually created that poll because of this video. It came out longer than I planned, so I figured I’d check if people wanted long videos or short. After this I’ll definitely start creating more series whenever I can and it makes sense.
@@coreyms thank you for all of your efforts Corey!!!
2 years later and I am still using this video to set up my VSCode environment. Thanks Corey, now that I'm studying DJango in my spare time, the git repository should be very well tweaked. That's why I'm setting up my env again
Thank you very much for the comprehensive tutorial. I have been using VSCode for the past two months for Python-ing and fell in love with it!
Hi Corey, I've seen several of your videos already and I've got to say your teaching skills are second to none. I was moving from vim and Sublime to start using VSC and when I saw you had a video to setup VSC for Python I got excited.
You are one of the best out there teaching people how to become proficient with Python. Keep up the good work!!
Thanks for sharing the knowledge.
Thanks!
Thanks for the shoutout Corey! (RE: Talk Python)
The best tutorial you can find on RUclips for coding Python with VS Code. The introduction of code runner solves the annoying redundant output for me! Thanks a lot! Subscribed!
THE ULTIMATE PYTHON PROGRAMMING TEACHER!
yep, after a few hours of playing with vscode as a result of this video, I'm sold. Much better than sublimetext. No going back.
Your videos are awesome man, Its incredible how much I learn with each one, wish you the best and keep it up!
previous pycharm user struggling with vscode. The first video to clearly explain this and get me going.
I’ve been using vs code for about a year now and you have taught me a few thanks! Glad to see you swapping over.
First time I've gone through anything code related. Happy to have found this setup walkthrough. Amazing walkthrough. Much appreciated. Wish me luck y'all.
Nice video! For the past 6 months I've been developing on a Mac (for my job at least).
Thanks! Is it the first time you've used a Mac for development? I've been using one for a few years now and really enjoy them. I love having access to Bash via the terminal, but judging from the video the Windows YT channel released a couple weeks ago, they're going to keep improving the Bash experience there as well:
ruclips.net/video/8gw0rXPMMPE/видео.html
This is an extremely in depth tutorial, I have gotten what I need from it today but I have no doubt I will be back. Excellent work
Best tutorial video ever about VS code with Python !!
I recently started learning Python. While searching for Python videos, came across your channel. @Corey Schafer: You are doing an unbelievable work to help others! Fluency of your presentation is the key I guess. I would not even comment on your depth of knowledge. Great skills. Thanks for all the help through your videos!
Bhai kaiss start kare ise
I started using vscode. Glad that your are here. Please make a tutorial on designing an app using flask or Django in vsvode
Thank you for the great video. You are by far one of my favorite python teachers and I will be supporting you on Patreon or either a channel member.
Thanks!
Corey is by far the ABSOLUTE BEST INSTRUCTOR I have even come across online - Hands down !!!!
VScode is the best. Especially for python and go. It has made coding so much faster for myself.
Corey, once again. Many thanks for all of your videos. It has been very useful in my life. Thanks thanks, thanks!
Mr. Schafer: This is one of the most helpful and useful tutorial videos that I have come across in quite some time. I have booked marked it for future reference. Many thanks.
Another great video. Very thorough and very clear.
It’s obvious that you put a lot of preparation into this and it’s very much appreciated.
The video demonstrates that VSCode provides a feature rich development environment.
Thanks!!
Not gonna lie, this tutorial was superb. Concise and to the point. So much information of great value. I learned so much! Thank you very much, Sir!
Now I just have to find a tut on "Java and VS Code" with similar quality and I'm all set :D
One of the best videos available for vs code
Thank you for the video. I was having problems with coderunner extension and some settings on my VS Code, you are a God saver! Awesome video!
Thank you for such a comprehensive guide!
The best tutorial for vscode with python development!
Hi, First I'll like to give thumbs up for this video. It is very useful for beginners.
I saw your video and notice 2 things that might you want to try.
1. It is a little bit tedious to run code in the terminal with right-click again and again. So there is setting for code-runner that you can turn on always run file in terminal.
2. For GIT management, try Git Lens as it gives you more control over git. I personally recommend it to everyone and once you tried, tell me how it feels.
Hey can you create a playlist about docker with python
Nice!
Yes please!
No other video even come close to this one thanks a ton to the author
Really long video... But worth it.
Watched and Learnt. Thank you Corey.. 😄
Finally, I can start coding on VS Code 😋
Great video, you can open the json settings side by side by clicking the split editor on the top right, or shortcut in the ubuntu is (ctrl+\).
Love your tutorials. Best informative videos ever. Thank you.
I watched this months ago. Amazing how much I missed/picked up this time around.
This is very thorough and clear. As always, thanks for taking us through step by step, and skipping things that might be trivial.
I started with Atom as my text editor, because I loved the Hydrogen package for quick prototyping. But as I mature in my software development journey, and I require more debugging functionality and I run of my scripts from the terminal. VSCode enables me much more in this regard, without something that feels so heavy and onerous to learn. Moreover, VSCode makes switching my Python Interpreters much easier!
Corey !! seems like you are born to make our life easier ... Again, please get inside the world of data analytics .. Python now a days also includes numpy, pandas, Matplot and seaborn .. it would be really nice to hear about these things from you
I'm working out the finishes on the last few Matplotlib videos now. Should be out in a week or two hopefully!
thanks...your time and passion for teach us... I learned a lot. I am new using VSCode and your video helped me a lot
Thank you so much for this, has helped a lot setting up VSC and I am using it now as my main editor for Python. Keep up the good work I am now doing your Python video's.
I didn't understand why you installed autoPEP8 (Black) and pylint within the venv. I think that must be part of VSCode configuration and not project dependent, right?
Thank you so much for making this video! I've been stuck and not knowing why it it my code wasn't showing in my terminal and you just showed me how.
Great video, it explains in a fast matter clearly the intial setup of VS Code. I look forward to see more video, to get more experience on Python
Wow, amazing tutorial. I feel like I just came back from one very useful and interactive workshop!
This is exactly what I needed. THANK YOU.
vscode seems pretty awesome. great video!
This was great and helpful as always! Bravo!!!!
tip: make sure to install vscode-icons as well. it just makes the looks much much better!
I'd like to add to the virtual environment that you can have two different environments running at the same time in the terminal and at the bottom left. When you fire up the program, by default it will set the terminal to the environment you have selected in the corner. This option can be overridden. Also, make sure when installing the packages to check whether pip list isn't showing something fishy because there's a bug where it still thinks it's in another environment.
You killed it, again!! Thank you!
Unbelievably helpful guide this!
Great tutorial! Can't wait for the next video about VS Code
Thanks for this! Great vid! It helped me set up VS code on my Mac and my Windows machine. Yes I watched both lol.
You are doing such great job bro!!
This is very impressive teaching!
Lots of great tips. Thanks, Corey!
Thanks for the clear explanation!
Your videos are really good. Love all the details you add
Thanks a lot. Your explanation is just awesome!
Wonderful tutorial, very informative, thanks a lot!
This is such a great tutorial! Thank you!
Very helpful!! thanks Corey
That's exactly what I looked for. Thank you!
Spectacular!! this video solved lots of my problems. Thanks a lot. but if I were you, I would break down a long video into videos with specific subject (issue, topic) sorted in a playlist, then you could have higher view.
Great tutorial! Thank you.
Thanks so much, my friend, great tutorial 😁
really nice general overview well explained. thank you so much for the effort and quality.
Awesome video. Thank you!
thank you. I didn't know about code-runner and I was using Jupyter notebooks just to avoid seeing crazy terminal messages lol.
This video is amazing. Thank you so much
Excellent tutorial!
Hey corey, first thank you soo much for all your videos. They are the most informative well documented tutorials in RUclips. Is it possible if you do a django web application project for personal portfolio with blog section similar to the django project series you did before?
Superb tutorial!
This is really good, thank you for doing this
Wow, can't really take in you did one for windows and one for mac. It is just too GREAT!! One question. I don't have Debug in my menu at the top. Is that an extension?
Hi Corey,
Spyder has this really friendly color theme creater. I find that I really enjoyed one color scheme I made through Spyder and is one of the biggest reasons why I still use Spyder. Would you happen to be able to explain where I can create my own theme on VS if it is simple enough?
You are really awesome. Thank you so much!
Great content! Thank you for helping us out :)
helpful as always, thanks!
You're the best, as always.
Thanks! I needed this! Couldn't figure out how to get python3 running as default.
this is gold..
Very helpful, thank you.
Thank you so much, this was incredibly helpful.
Thank you sooo much! This saves me!
I learnt a lot from you , Thank you
Thanks a lot !
Hate to seem cheap ... but is it free?
I know you said it was free, but do you have to buy other additions too?
If it is free does that mean they surveil you and your coding habits?
Amazing tutorial!
Thanks so much, Corey for the detailed video, I have one detail to point out and one question, I think that by the time I watched this video VScode already have done some changes/upgrades on their program, e.g. the button in the top that runs the code in the terminal is already there now without adding the CODE RUNNER extension, in that case, I still would like to make the change on the integrated terminal that shows in a cleaner way the output of the python code. If you are aware of this or have an update video about that I will really appreciate if you can point me to it, or if you know which setting should I look into in VScode will be really appreciated? Great stuff from you as always! and take care.
Excellent !!!
can you please create one video releted to jupyter notebook using pycharm editor.
man see the number of likes *** now you have another like to make the number of likes good again.
great effort!
Corey -- nice video, Thank you, (You sound like the host of NPR Wait Wait -- Peter Sagal -- may be you can replace him one day?)
Hey Ho,
really great Tutorial and thank you for the Help.
I come to you with one question doe:
at 37:10 you are showing us the use of formatters - is there a way to personalize the way it formatts the code? and if yes is it advisable?
Thank you again and have a great day :)
Thanks for this vid and this looks like a nice dev environment. I won't really switch to it though because of telemetry. There is also VSCodium which removes all Microsoft branding/telemetry before compiling but unfortunately it has no control over telemetry sent by individual extensions, including the python extension.
When i change/switch the interpreter, it's not written to the user setting like in 28:10. Does anyone know what the problem is ?
Hey Corey, loved this video. Could you do something similar perhaps for R? I have been using RStudio for the R code and would be great if I could have it all in one place.