Visual Studio Code (Mac) - Setting up a Python Development Environment and Complete Overview

Поделиться
HTML-код
  • Опубликовано: 11 сен 2024

Комментарии • 261

  • @coreyms
    @coreyms  5 лет назад +123

    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!

    • @coreyms
      @coreyms  5 лет назад +4

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

    • @kidslearningandfunvideos
      @kidslearningandfunvideos 5 лет назад

      please make a video to convert csv file to text in pycharm

    • @jbaqaeen
      @jbaqaeen 5 лет назад

      Well thought through video, thank you very much.

    • @bholaprasad26
      @bholaprasad26 4 года назад

      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.

    • @timmckeanmusic
      @timmckeanmusic 4 года назад

      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!

  • @ThePCTechDiva
    @ThePCTechDiva 5 лет назад +73

    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!

  • @freecodecamp
    @freecodecamp 5 лет назад +130

    You are a great teacher!

    • @JustinMacri007
      @JustinMacri007 3 года назад

      Is this better then kite kite hit be so crazy editors plug ins are not installing on my Mac please help.

  • @fvgoya
    @fvgoya 5 лет назад +9

    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.

    • @coreyms
      @coreyms  5 лет назад +2

      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.

    • @fvgoya
      @fvgoya 5 лет назад

      @@coreyms thank you for all of your efforts Corey!!!

  • @AndreSantosFotografia
    @AndreSantosFotografia 2 года назад +1

    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

  • @mochammadhusnirizal235
    @mochammadhusnirizal235 5 лет назад +2

    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!

  • @daniel280187
    @daniel280187 5 лет назад +4

    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.

  • @mikeckennedy
    @mikeckennedy 5 лет назад +16

    Thanks for the shoutout Corey! (RE: Talk Python)

  • @parallelworld.1
    @parallelworld.1 4 года назад +1

    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!

  • @posoot
    @posoot 4 года назад +4

    THE ULTIMATE PYTHON PROGRAMMING TEACHER!

  • @erwingutowitz7920
    @erwingutowitz7920 5 лет назад +3

    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.

  • @GianKTricerri
    @GianKTricerri 5 лет назад +5

    Your videos are awesome man, Its incredible how much I learn with each one, wish you the best and keep it up!

  • @whattupdoe1
    @whattupdoe1 2 года назад

    previous pycharm user struggling with vscode. The first video to clearly explain this and get me going.

  • @Cowboy8625
    @Cowboy8625 5 лет назад +3

    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.

  • @w1ze07513
    @w1ze07513 2 года назад

    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.

  • @realchrishawkes
    @realchrishawkes 5 лет назад +11

    Nice video! For the past 6 months I've been developing on a Mac (for my job at least).

    • @coreyms
      @coreyms  5 лет назад +1

      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

  • @Willguy24
    @Willguy24 Год назад

    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

  • @laurenceluo4467
    @laurenceluo4467 4 года назад +1

    Best tutorial video ever about VS code with Python !!

  • @naveenkrishnabhat
    @naveenkrishnabhat 3 года назад

    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!

  • @0568raju
    @0568raju 5 лет назад +1

    I started using vscode. Glad that your are here. Please make a tutorial on designing an app using flask or Django in vsvode

  • @rodneyseay9242
    @rodneyseay9242 5 лет назад +3

    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.

    • @coreyms
      @coreyms  5 лет назад

      Thanks!

    • @charlesbovalis6591
      @charlesbovalis6591 5 лет назад +1

      Corey is by far the ABSOLUTE BEST INSTRUCTOR I have even come across online - Hands down !!!!

  • @RandomShowerThoughts
    @RandomShowerThoughts 5 лет назад +3

    VScode is the best. Especially for python and go. It has made coding so much faster for myself.

  • @ldizai
    @ldizai 5 лет назад +1

    Corey, once again. Many thanks for all of your videos. It has been very useful in my life. Thanks thanks, thanks!

  • @vacowboy75
    @vacowboy75 4 года назад

    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.

  • @thebuggser2752
    @thebuggser2752 2 года назад

    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!!

  • @fruitspunch
    @fruitspunch 3 года назад

    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

  • @mpbabu80
    @mpbabu80 2 года назад

    One of the best videos available for vs code

  • @lenilunderman3697
    @lenilunderman3697 5 лет назад +1

    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!

  • @pslv
    @pslv 5 лет назад +4

    Thank you for such a comprehensive guide!

  • @amanmanojpreeti
    @amanmanojpreeti 3 года назад

    The best tutorial for vscode with python development!

  • @rehanali3113
    @rehanali3113 5 лет назад

    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.

  • @waex7089
    @waex7089 5 лет назад +50

    Hey can you create a playlist about docker with python

  • @mpbabu80
    @mpbabu80 2 года назад

    No other video even come close to this one thanks a ton to the author

  • @mohammedmoosasharieff1816
    @mohammedmoosasharieff1816 4 года назад

    Really long video... But worth it.
    Watched and Learnt. Thank you Corey.. 😄
    Finally, I can start coding on VS Code 😋

  • @syedabdulsalam4659
    @syedabdulsalam4659 5 лет назад +1

    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+\).

  • @cyberbooth1585
    @cyberbooth1585 4 года назад +1

    Love your tutorials. Best informative videos ever. Thank you.

  • @Popsimath
    @Popsimath 4 года назад +3

    I watched this months ago. Amazing how much I missed/picked up this time around.

  • @goodcompanycoffee
    @goodcompanycoffee 4 года назад

    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!

  • @lilprotakeit
    @lilprotakeit 5 лет назад

    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

    • @coreyms
      @coreyms  5 лет назад

      I'm working out the finishes on the last few Matplotlib videos now. Should be out in a week or two hopefully!

  • @adanpalma4026
    @adanpalma4026 3 года назад

    thanks...your time and passion for teach us... I learned a lot. I am new using VSCode and your video helped me a lot

  • @speedlime1515
    @speedlime1515 4 года назад

    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.

  • @jcatlantis
    @jcatlantis 4 года назад +1

    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?

  • @destinyrodriguez2810
    @destinyrodriguez2810 3 года назад

    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.

  • @djrongrey7826
    @djrongrey7826 4 года назад

    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

  • @douglasaraujo9763
    @douglasaraujo9763 3 года назад

    Wow, amazing tutorial. I feel like I just came back from one very useful and interactive workshop!

  • @resourciful
    @resourciful 5 лет назад +2

    This is exactly what I needed. THANK YOU.

  • @lazypunk794
    @lazypunk794 5 лет назад +1

    vscode seems pretty awesome. great video!

  • @gnuter3000
    @gnuter3000 5 лет назад +2

    This was great and helpful as always! Bravo!!!!

  • @amortalbeing
    @amortalbeing 2 года назад

    tip: make sure to install vscode-icons as well. it just makes the looks much much better!

  • @yeleukenov_music
    @yeleukenov_music 4 года назад +1

    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.

  • @adamgdev
    @adamgdev 4 года назад +1

    You killed it, again!! Thank you!

  • @alexbos8211
    @alexbos8211 4 года назад +1

    Unbelievably helpful guide this!

  • @janokruta6282
    @janokruta6282 5 лет назад

    Great tutorial! Can't wait for the next video about VS Code

  • @Crockerfeller
    @Crockerfeller 5 лет назад +1

    Thanks for this! Great vid! It helped me set up VS code on my Mac and my Windows machine. Yes I watched both lol.

  • @neomok2691
    @neomok2691 5 лет назад +3

    You are doing such great job bro!!

  • @persisto77
    @persisto77 5 лет назад +1

    This is very impressive teaching!

  • @samrousculp7432
    @samrousculp7432 5 лет назад +1

    Lots of great tips. Thanks, Corey!

  • @aJayBoulder
    @aJayBoulder 4 года назад +1

    Thanks for the clear explanation!

  • @dweeder1453
    @dweeder1453 Год назад

    Your videos are really good. Love all the details you add

  • @svenschroder9781
    @svenschroder9781 5 лет назад +1

    Thanks a lot. Your explanation is just awesome!

  • @mau_lopez
    @mau_lopez 5 лет назад +1

    Wonderful tutorial, very informative, thanks a lot!

  • @petetalbert
    @petetalbert 4 года назад +1

    This is such a great tutorial! Thank you!

  • @eric159tw
    @eric159tw 4 года назад +1

    Very helpful!! thanks Corey

  • @MS-fu3zf
    @MS-fu3zf 5 лет назад +1

    That's exactly what I looked for. Thank you!

  • @miadabdi7785
    @miadabdi7785 5 лет назад

    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.

  • @zebelhra
    @zebelhra 4 года назад +1

    Great tutorial! Thank you.

  • @barrjohnm
    @barrjohnm 4 года назад +1

    Thanks so much, my friend, great tutorial 😁

  • @TheVitamineE
    @TheVitamineE 4 года назад

    really nice general overview well explained. thank you so much for the effort and quality.

  • @laurayang8893
    @laurayang8893 4 года назад +1

    Awesome video. Thank you!

  • @elitacilan891
    @elitacilan891 Год назад

    thank you. I didn't know about code-runner and I was using Jupyter notebooks just to avoid seeing crazy terminal messages lol.

  • @rohittalluri
    @rohittalluri 4 года назад +1

    This video is amazing. Thank you so much

  • @andriirubtsov5404
    @andriirubtsov5404 3 года назад

    Excellent tutorial!

  • @abdullahiahmed6341
    @abdullahiahmed6341 5 лет назад

    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?

  • @InsightsofAJ
    @InsightsofAJ Год назад

    Superb tutorial!

  • @shafiemukhre
    @shafiemukhre 5 лет назад +1

    This is really good, thank you for doing this

  • @ekbergpeter6987
    @ekbergpeter6987 4 года назад

    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?

  • @enriko3694
    @enriko3694 5 лет назад +1

    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?

  • @mikelearner5758
    @mikelearner5758 4 года назад +1

    You are really awesome. Thank you so much!

  • @ev3lynn141
    @ev3lynn141 3 года назад

    Great content! Thank you for helping us out :)

  • @buuqmarabo2778
    @buuqmarabo2778 5 лет назад +1

    helpful as always, thanks!

  • @chazyua
    @chazyua 5 лет назад +1

    You're the best, as always.

  • @BurritoBrooks
    @BurritoBrooks 4 года назад +1

    Thanks! I needed this! Couldn't figure out how to get python3 running as default.

  • @NIHIT555
    @NIHIT555 4 года назад

    this is gold..

  • @baharmand
    @baharmand Год назад

    Very helpful, thank you.

  • @blakehunsicker9458
    @blakehunsicker9458 3 года назад

    Thank you so much, this was incredibly helpful.

  • @Majagarbulinska
    @Majagarbulinska 3 года назад

    Thank you sooo much! This saves me!

  • @oramata_team
    @oramata_team 4 года назад

    I learnt a lot from you , Thank you

  • @sofianey3490
    @sofianey3490 4 года назад +1

    Thanks a lot !

  • @justgivemethetruth
    @justgivemethetruth 2 года назад

    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?

  • @opensauce
    @opensauce 4 года назад

    Amazing tutorial!

  • @jairusan
    @jairusan 3 года назад

    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.

  • @juliocardenas4485
    @juliocardenas4485 3 года назад

    Excellent !!!

  • @mehuljadav7936
    @mehuljadav7936 5 лет назад +1

    can you please create one video releted to jupyter notebook using pycharm editor.

  • @KIXEMITNOG
    @KIXEMITNOG 5 лет назад +1

    man see the number of likes *** now you have another like to make the number of likes good again.

  • @user-bg2zt3sc3l
    @user-bg2zt3sc3l Год назад

    great effort!

  • @paraparasolian6484
    @paraparasolian6484 3 года назад

    Corey -- nice video, Thank you, (You sound like the host of NPR Wait Wait -- Peter Sagal -- may be you can replace him one day?)

  • @UltimateFalk
    @UltimateFalk 4 года назад

    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 :)

  • @cylonscion5470
    @cylonscion5470 5 лет назад

    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.

  • @claystudiofx
    @claystudiofx 3 года назад

    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 ?

  • @Medhavi123
    @Medhavi123 3 года назад

    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.