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 TH-cam 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.
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!
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: th-cam.com/video/8gw0rXPMMPE/w-d-xo.html
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.
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!!
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.
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!
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.
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.
Hi question here I am currently using mac os. At 41:01, If I click run.. nothing comes out from output section... even though I installed “code runner” its not working..huhu Can you please tell me what to do?
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?
really great tutorial, thanks a ton! unfortunately for me I got stuck w/pushing to GitHub (56:54:). I keep getting "Your repository has no remotes configured to push to" Any ideas on how to fix would be appreciated.
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?
Hey corey, first thank you soo much for all your videos. They are the most informative well documented tutorials in TH-cam. 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, I would like to tell you thanks for sharing your knowledge with us and your clear style of teaching. I would like to ask you to tell us how to make a certain Python version is the default in mac rather in the version 2.7 which already because absolute. or how to uninstall the out dated version 2.7 and then install the current updated one. I tried in to search but not yet succeeded to find. Thank you
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 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 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
previous pycharm user struggling with vscode. The first video to clearly explain this and get me going.
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!
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!
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
The best tutorial you can find on TH-cam 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.
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!
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
Thanks for the shoutout Corey! (RE: Talk Python)
THE ULTIMATE PYTHON PROGRAMMING TEACHER!
VScode is the best. Especially for python and go. It has made coding so much faster for myself.
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:
th-cam.com/video/8gw0rXPMMPE/w-d-xo.html
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.
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
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 !!!!
Best tutorial video ever about VS code with Python !!
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.
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!!
The best tutorial for vscode with python development!
One of the best videos available for vs code
I started using vscode. Glad that your are here. Please make a tutorial on designing an app using flask or Django in vsvode
Corey, once again. Many thanks for all of your videos. It has been very useful in my life. Thanks thanks, thanks!
Really long video... But worth it.
Watched and Learnt. Thank you Corey.. 😄
Finally, I can start coding on VS Code 😋
No other video even come close to this one thanks a ton to the author
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 for the video. I was having problems with coderunner extension and some settings on my VS Code, you are a God saver! Awesome video!
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!
Wow, amazing tutorial. I feel like I just came back from one very useful and interactive workshop!
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.
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.
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
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!
Thank you for such a comprehensive guide!
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+\).
vscode seems pretty awesome. great video!
Thanks for this! Great vid! It helped me set up VS code on my Mac and my Windows machine. Yes I watched both lol.
Love your tutorials. Best informative videos ever. Thank you.
Your videos are really good. Love all the details you add
tip: make sure to install vscode-icons as well. it just makes the looks much much better!
Unbelievably helpful guide this!
Great tutorial! Can't wait for the next video about VS Code
Very helpful!! thanks Corey
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.
really nice general overview well explained. thank you so much for the effort and quality.
This is very impressive teaching!
This was great and helpful as always! Bravo!!!!
Thanks a lot. Your explanation is just awesome!
You killed it, again!! Thank you!
This is exactly what I needed. THANK YOU.
Hey can you create a playlist about docker with python
Nice!
Yes please!
Thanks for the clear explanation!
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 are doing such great job bro!!
Wonderful tutorial, very informative, thanks a lot!
Lots of great tips. Thanks, Corey!
Thanks so much, my friend, great tutorial 😁
This is such a great tutorial! Thank you!
This video is amazing. Thank you so much
Great tutorial! Thank you.
That's exactly what I looked for. 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.
Great content! Thank you for helping us out :)
Thank you so much, this was incredibly helpful.
Excellent content, Thanks!
Excellent tutorial!
You are really awesome. Thank you so much!
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 ?
Superb tutorial!
This is really good, thank you for doing this
Great video. Thanks!
Hi question here I am currently using mac os.
At 41:01, If I click run.. nothing comes out from output section... even though I installed “code runner” its not working..huhu
Can you please tell me what to do?
Very helpful, thank you.
I learnt a lot from you , Thank you
Thank you sooo much! This saves me!
man see the number of likes *** now you have another like to make the number of likes good again.
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?
really great tutorial, thanks a ton! unfortunately for me I got stuck w/pushing to GitHub (56:54:). I keep getting "Your repository has no remotes configured to push to" Any ideas on how to fix would be appreciated.
helpful as always, thanks!
You're the best, as always.
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?
Hey corey, first thank you soo much for all your videos. They are the most informative well documented tutorials in TH-cam. 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?
Amazing tutorial!
thank you !! this is really helpfull !!
How do I get a py module going so I can set up the environment. I keep getting stuck at 7:50.
me too!!!
3:50
4:42 managing extensions
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?
Thank you so much your great effect
Hi Corey, I would like to tell you thanks for sharing your knowledge with us and your clear style of teaching. I would like to ask you to tell us how to make a certain Python version is the default in mac rather in the version 2.7 which already because absolute. or how to uninstall the out dated version 2.7 and then install the current updated one. I tried in to search but not yet succeeded to find. Thank you
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 :)
What is the integrated terminal shell you use! I really like it!
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 !!!