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

Sdílet
Vložit
  • čas přidán 2. 07. 2024
  • In this Python Programming Tutorial, we will be learning how to set up a Python development environment in VSCode on Windows. VSCode is a very nice free editor for writing Python applications and many developers are now switching over to this editor. In this video, we will learn how to install VSCode, get the Python extension installed, how to change Python interpreters, create virtual environments, format/lint our code, how to use Git within VSCode, how to debug our programs, how unit testing works, and more. We have a lot to cover, so let's go ahead and get started...
    VSCode on MacOS - • Visual Studio Code (Ma...
    Timestamps for topics in this tutorial:
    Installation - 1:13
    Python Extension - 5:48
    Switching Interpreters - 10:04
    Changing Color Themes - 12:35
    VSCode Settings - 16:16
    Set Default Python - 21:33
    Using Virtual Environments - 25:10
    IntelliSense - 29:45
    Code Formatting - 32:13
    Code Linting - 37:06
    Code Runner Extension - 39:42
    Git Integration - 47:44
    Use Different Terminal - 51:07
    Debugging - 58:45
    Unit Testing - 1:03:25
    Zen Mode - 1:09:55
    VSCode Site - code.visualstudio.com/
    Python Installation - • Python Tutorial for Be...
    Source Code Pro - github.com/adobe-fonts/source...
    VENV Tutorial - • Python Tutorial: VENV ...
    Git Tutorial - • Git Tutorial for Begin...
    Unit Testing Tutorial - • Python Tutorial: Unit ...
    My VSCode Settings - bit.ly/vscode-coreyms
    ✅ Support My Channel Through Patreon:
    / coreyms
    ✅ Become a Channel Member:
    / @coreyms
    ✅ One-Time Contribution Through PayPal:
    goo.gl/649HFY
    ✅ Cryptocurrency Donations:
    Bitcoin Wallet - 3MPH8oY2EAgbLVy7RBMinwcBntggi7qeG3
    Ethereum Wallet - 0x151649418616068fB46C3598083817101d3bCD33
    Litecoin Wallet - MPvEBY5fxGkmPQgocfJbxP6EmTo5UUXMot
    ✅ Corey's Public Amazon Wishlist
    a.co/inIyro1
    ✅ Equipment I Use and Books I Recommend:
    www.amazon.com/shop/coreyschafer
    ▶️ You Can Find Me On:
    My Website - coreyms.com/
    My Second Channel - / coreymschafer
    Facebook - / coreymschafer
    Twitter - / coreymschafer
    Instagram - / coreymschafer
    #Python #VSCode

Komentáře • 495

  • @coreyms
    @coreyms  Před 5 lety +312

    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:13
    Python Extension - 5:48
    Switching Interpreters - 10:04
    Changing Color Themes - 12:35
    VSCode Settings - 16:16
    Set Default Python - 21:33
    Using Virtual Environments - 25:10
    IntelliSense - 29:45
    Code Formatting - 32:13
    Code Linting - 37:06
    Code Runner Extension - 39:42
    Git Integration - 47:44
    Use Different Terminal - 51:07
    Debugging - 58:45
    Unit Testing - 1:03:25
    Zen Mode - 1:09:55
    If I missed anything then just let me know. Hope you're all having a great week!

    • @tyaprak
      @tyaprak Před 5 lety +8

      Best youtuber for python. Thanks Corey.

    • @munish259272
      @munish259272 Před 5 lety

      can you make a video on sys.exceptionhook and python traceback

    • @aaryandhakal6098
      @aaryandhakal6098 Před 5 lety +1

      Please do a pycharm one. I recently shifted from vscode to pycharm and now i am not sure how the workflow goes or how to make the editor environment more productive. Thanks .

    • @WOWDarkesty
      @WOWDarkesty Před 5 lety

      Thanks for the great video. Only thing i found a issue was the max-line formatting, but maybe that is just preference.. 80 for me was abit to little. if anyone else has that problem, since we are using formatting black add this
      "python.formatting.blackArgs": [
      "--max-line-length=120"
      ],
      "editor.rulers": [
      120
      ],

    • @munish259272
      @munish259272 Před 5 lety

      @@WOWDarkesty Yes, that is an annoying problem so i stopped using black instead if use yapf

  • @mehmeteminkrgn4108
    @mehmeteminkrgn4108 Před 4 lety +192

    This man makes the best tutorials ever.

  • @brock2k1
    @brock2k1 Před 4 lety +31

    I love everything about this tutorial. No stupid music, large font on his terminal, and great information, especially about useful setup details that are hard to find without someone showing you. Who would have thought there were extensions to change the folder symbols?

  • @scuti7073
    @scuti7073 Před 2 lety +30

    This was the most impeccable tutorial ever. As a beginner, I’ve been always intimated by vscode with all the settings and all the errors that pop up. This cleared up all my doubts. I sincerely thank you for your selfless contributions to the public.

  • @1OJosh
    @1OJosh Před 4 lety +3

    This is the best VScode how to video ever. He even covered git and debug. Everything he showed us here will help setup VScode for any language with a little googling for specific stuff related to the language. Subscribed forever!

  • @Skypriv
    @Skypriv Před 5 lety +3

    You're actually a life saver. I've been hit with more frustration than I can handle with trying to find information on all of this. I finally found this video. THANK YOU.

  • @Shakeel714
    @Shakeel714 Před 4 lety +3

    Thanks Corey Schafer for the most comprehensive explanation for setting up VS Code on windows. Never saw such an easy-to-understand video on CZcams. Indeed you are the best teacher for aspiring web developers around the globe. God bless you.

  • @user-gr5ss3td3h
    @user-gr5ss3td3h Před 5 lety +3

    Absolutely great video! Just started learn python from scratch and choose VS code as IDE and your video gave me a great push ahead! thank you Corey!

  • @erg8311
    @erg8311 Před 5 lety +4

    Thank you for the excellent video. When I started using it, the integrated python interactive / jupyter functionality was a massive game changer on how I develop. Jupyter was always missing debug, unit testing, github, intellisense and other advanced features. Now vscode combines the two worlds. I think you would positively impact many devs if you make a video on this functionality of vscode.

  • @gaworecki-udacitydsnd4740

    Really great video for someone brand new to VSC. Every step was explained thoroughly and clearly. And every additional piece that would be needed to get VCS set up to be productive with it asap was explained as well. I really appreciate you.

  • @dmurphydrtc
    @dmurphydrtc Před 5 lety +6

    Corey...just started using VSC and your tutorial is fantastic. Well done, love your work.

  • @garrybeck216
    @garrybeck216 Před 4 lety +3

    Thanks for this Corey, I've moved over from using Sublime Text 3 to Visual Studio Code. This video has really helped.

  • @chimadivine7715
    @chimadivine7715 Před 4 lety +18

    Thank you. U know, one thing is knowing how to code and another thing is to know how to set-up the environment. I'm currently having problems using Atom & sublime editors for python. VS is actually great! Thanks again

  • @ramarao_amara
    @ramarao_amara Před 4 lety +2

    its been using VSCode for many months , but these settings helped me a lot , thanks man ! , you are one of the great tutor on youtube !

  • @mintymintfresh
    @mintymintfresh Před 2 lety +2

    Corey is the best python tutor. The reason i have become good in python over the years is because his wonder tutorials.. specially the ones on flask, classes and objects etc ... thanks a ton and always grateful.

  • @supermalavox
    @supermalavox Před 2 lety +3

    What I liked about VS Code is the accessibility support put into it. It is very screen reader-friendly, which is very interesting for blind/visually-impaired programmers of any level!
    Great work on your video as well!

  • @sajjadhossan7972
    @sajjadhossan7972 Před 4 lety

    This the best tutorial on vscode I've ever seen. Not only this one all of your tutorials are the ever best one, no matter how long or short it is!

  • @void_invoker
    @void_invoker Před 5 lety +9

    This is just amazing!
    Thanks, Corey! Your work is very much appreciated.

  • @gamestv4875
    @gamestv4875 Před 4 lety +6

    This tutorial uncovered a lot of powerful features which I never knew of.
    Nice tutorial Corey.

  • @1879heikkisorsa
    @1879heikkisorsa Před 5 lety +28

    Great intro to VSCode. Suggestions: Another video on debugging in VSCode for Django (like your Django Project) would be interesting. Also one on how to implement meaningful unit tests for the Django Project would be interesting.

  • @re.liable
    @re.liable Před 4 lety +6

    This is nice. This channel is one of my favorites that is related to Python. I've only coded for a relatively short period but I've always done it in IDLE 😂 Now I want to try VSCode and seeing this just made me so happy lol

  • @shanebauman6555
    @shanebauman6555 Před 4 lety +2

    Thanks so much for making your UI so large. It really helps when I'm either watching on my phone or have CZcams split on only half my monitor

  • @khaled.aldajani
    @khaled.aldajani Před 5 lety +3

    Yes! you finally switched to VSC can't wait to see you using it in future tutorials

  • @user-pt4vn5hr2z
    @user-pt4vn5hr2z Před 4 lety +2

    people like you make life easier for beginners, thank you

  • @eanderson6473
    @eanderson6473 Před 4 lety +1

    Perfect, provides a very wide and practical guide to coding in python with VSCode. Thanks!

  • @sung1
    @sung1 Před 5 lety +3

    Hands down the best python tutorial videos on the internet

  • @Hacking-NASSA-with-HTML
    @Hacking-NASSA-with-HTML Před 3 lety +4

    💖 Great work, Corey! 👍 Big Thanks!!! 💖
    How to upload an existing project to Github 47:56 and 56:28
    Setting .gitignore file 49:30
    How to format document: 32:44 Shift+Alt+F

  • @abidvu2472
    @abidvu2472 Před 3 lety

    Simple, straight to the point, and the voice is full of energy. Love your videos!

  • @catharsis222
    @catharsis222 Před 5 lety +3

    This video saved me. I feel like i searched for vscode python at the right time

  • @wolfisraging
    @wolfisraging Před 4 lety +5

    The best vs code setup by far, thanks a ton

  • @franciscoabusleme9085
    @franciscoabusleme9085 Před 4 lety

    By far my favourite programming channel...so well delivered, and you pick very nice topics. Congratulations, you are one of a kind

  • @gokulsreekumar4371
    @gokulsreekumar4371 Před 5 lety +1

    just started with vs code and now this video just made my day

  • @krushnaekbote9119
    @krushnaekbote9119 Před 4 lety +1

    This is the most useful information for setting up python on VS Code! Thanks a lot buddy!!!

  • @quyenscc
    @quyenscc Před 2 lety

    You really saved my life. I have been struggling finding a debug tool for my python project for months. I have tried IDLE, Pycharm, VSCode, .. but my limited knowledge couldn’t help me solve difficulties when dealing with these tools. There are many challenges involves path, node, shell,.. which keeping me from running the debug features. I was very desperate and hey, I found your video. Even though now the VSCode doesn’t look exactly the same as when you took this video, but most of the instructions are still applied. Again, sincere thanks for your great video. You are my hero.

  • @bryanmedina9808
    @bryanmedina9808 Před 3 lety

    I clicked on this video expecting to only skim through it and focus on one section I was having trouble with. I ended up watching every second of it. Thank you, thank you, thank you!

    • @codingisgreat1187
      @codingisgreat1187 Před 3 lety

      Please go to this link and subscribe if you like watching Coding videos.
      (NOTE- Subscribe only if you love coding, especially Python 3)
      Link-czcams.com/channels/9n1st3cSVeu3sQpbRbyEyQ.html

  • @tobidegnon4409
    @tobidegnon4409 Před 5 lety +7

    Excellent video as usual, for the next one, a deep view of the integrated debug tool is a good idea I think, a tutorial on how to use tasks.json vs code file is something I'm looking for, thank's for your great job Corey.

  • @alangeorge1090
    @alangeorge1090 Před 3 lety

    Amazing video!!! Contains all the basics to setup python in vs code for absolute beginners. Great job 👍🏽😁

  • @harirasamir2436
    @harirasamir2436 Před 4 lety

    I've just start learning Python and I have a chance to find this "Magnifique" (Belgium expression) Tuto. Many thanks for this good, detailed and practical tutorial. Again thx

  • @xSupasx
    @xSupasx Před 5 lety +7

    Man your tutorials just rock. Thank you very much

  • @skf957
    @skf957 Před rokem

    Superb tutorial. Watched it once all the way through. Then again stepping back and forth to my VSC session. No doubt I'll be referring back to this. Thank you for posting.

  • @olivierdaigle4744
    @olivierdaigle4744 Před 4 lety +1

    Hey Corey, thanks for putting this tutorial together. It was very useful.

  • @mostafaahmadi4998
    @mostafaahmadi4998 Před 3 lety

    Hi Corey. Thank you very much for all the time and effort you put into your videos. Whenever I click on one of your videos, the first thing I do is to like the video before even watching it since I am sure that it is of high quality.

  • @PankajTiwarioist
    @PankajTiwarioist Před 4 lety +1

    Great Video. I finally opened VSCode and started Python.

  • @Ms.Robot.
    @Ms.Robot. Před 4 lety +4

    I know why I recently subscribed to you:
    BECAUSE: you are sooo goood.

  • @rogerwprice
    @rogerwprice Před 5 lety +2

    Super comprehensive and useful - Thank You!

  • @gerozayas9425
    @gerozayas9425 Před 2 lety

    Your tutorials and videos in general are fantastic. Thank you so much and congrats on all the amazing work, it is really inspiring, too, not only informative. Cheers.

  • @ytlagu2010
    @ytlagu2010 Před 5 lety

    Interesting, the Sublime Text big enthusiast is finally switching to the mighty VS Code! Welcome bro! I always feel that your tutorials are missing something and that was VS Code. It will feel complete for me to follow your upcoming tutorials in VS code! I can't wait...

  • @enriquebruzual1702
    @enriquebruzual1702 Před 5 lety +2

    Nice job Corey, I use it every day and I learned some new things with you video. Specially with debugging and unit test. REQUEST: could you do a more detailed unit test video for vscode. Thanks again!👍

  • @Ben-kz2km
    @Ben-kz2km Před 4 lety +1

    Just commenting to tell you that I really appreciate the large fonts etc.
    I have watched too many videos where people simply recorded their screen at insane resolutions where you couldn't read anything. Thanks for thinking about your viewers experience. :)

  • @nicholasametefedzabeng9125
    @nicholasametefedzabeng9125 Před 8 měsíci

    This tutorial is one of the best I have ever viewed. Keep it up,
    Snr.

  • @CoreWii
    @CoreWii Před 4 lety +1

    Ay Corey really amazing tutorial, this was incredibly helpful for me. Thank you my guy.

  • @FABESTAH
    @FABESTAH Před rokem

    What a great video, literally every little piece of information was useful for me as a beginner! :)

  • @8koi139
    @8koi139 Před 3 lety

    I was so confused because I couldn't run any code yesterday, 10min in and now I can... THANKS YOU

  • @johnhillescobar
    @johnhillescobar Před rokem

    @Corey Your tutorials are the best of the best. I miss you producing more tutorials.

  • @smjure
    @smjure Před 5 lety +5

    Great video. Some thorough debugging of Python code in VScode is sth we would look forward to see from you :)

  • @jsho12
    @jsho12 Před 4 lety +1

    Thanks for this video. Very helpful especially as someone fairly new to coding.

  • @LewisCunningham
    @LewisCunningham Před 4 lety

    This is a great video. I learned things I didn't even know I needed to learn.

  • @MindScape322
    @MindScape322 Před 3 lety

    Corey thanks for the awesome video guide. Helped me a ton to understand how Vs Code works. Really appreciate all the hard work and wish u all the success. Thanks once again :)

  • @JR-gy1lh
    @JR-gy1lh Před 4 lety +1

    @Corey Schafer this is fantastic, Thank you!!! I'm relatively new to Python ~1 year. I can't believe I hadn't heard of this IDE. I'm trying to run some scripts continually wasn't able to do it with my Jupyter Notebooks very easily.

  • @Tyokok
    @Tyokok Před 4 lety +1

    thank you soooooooo much for the great tutorial! and outlined by time, the best!

  • @adicide9070
    @adicide9070 Před 3 lety

    I'm seriously loving this editor. I use it for JS/TS mostly, but it's cool to do Python as well, for sure

  • @opensauce
    @opensauce Před 3 lety

    Awesome. This was one of the most useful videos i've ever watched. Thanks Corey!

  • @DavidRajM
    @DavidRajM Před 5 lety +6

    You always rock the video just sticking to what you want to say and delivering nicely. Thanks for the video.. Learned a lot from this video.

  • @constantfear
    @constantfear Před 5 lety +1

    Was waiting for this after listening to the latest talk python to me podcast!

  • @mrmshifan
    @mrmshifan Před 3 lety

    Hi Corey,
    Thank you very much for the video. I really grateful for the effort you out to make these videos.
    Wishing you all the best. ☺

  • @zebsolaria4763
    @zebsolaria4763 Před 3 lety

    Best intro vs code ever... loved it.

  • @PimpinPoptart06
    @PimpinPoptart06 Před 5 lety +3

    Your videos are dope AF, thank you

  • @surendrasawant9781
    @surendrasawant9781 Před 4 lety +1

    Great tutorial for setting python environment in vscode I already using vscode

  • @yuchen3731
    @yuchen3731 Před 2 lety

    This video literally saves me after a number of useless webs!!!appreciate it so much

  • @ernestschmitt4664
    @ernestschmitt4664 Před 5 lety

    Great Video! I ran into all kinds of issues getting started with python. Mainly due to my PATH not pointing to the correct version of python, your other video about setting the PATH helped out a lot. On the VENV section of the video I had an issue with VS Code not being able to execute the activate.ps1 file (it was saying it wasn't digitally signed). After looking around I found that I needed to run Power Shell as an administrator and run this command, Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser, once I did that the VENV was able to activate in VS Code.

  • @kashish9285
    @kashish9285 Před 2 lety

    Thank you so much for this! :) Has saved me so much time and headache!

  • @flanksinatra3785
    @flanksinatra3785 Před 2 lety

    Thank you so much in your efforts making this. I learned a great deal from your video.

  • @miqueldespuig
    @miqueldespuig Před 2 lety

    Best VSCode Setup video for begginers I've seen so far. You got a subscriber here Corey! ;-P

  • @veer5787
    @veer5787 Před 3 lety

    Thanks a lot you are the best teacher ever this was really helpful i could never figure out how to use venv and you explained in seconds i can't thank you enough. it also helped me learn so many new things Thanks a lot :)

  • @cblack2863
    @cblack2863 Před 2 lety

    Great video explaining the features of VS Code for Python

  • @XinhLe
    @XinhLe Před 4 lety

    most useful vscode tutorial so far on youtube for me. cheers

    • @XinhLe
      @XinhLe Před rokem

      2 years ago, start over again

  • @delt19
    @delt19 Před 4 lety +6

    Thank you for this walk through. I'm an R user that wants to start learning Python. I was looking for an IDE that's comparable to phenomal R Studio and it looks like VS Code comes pretty close to it. Curios to see all the content your channel has to offer for new Python users.

    • @nikilkvn
      @nikilkvn Před 4 lety

      hey did you check spyder?

    • @xiaoranmo7308
      @xiaoranmo7308 Před 4 lety +1

      R studio can be python ide too

    • @fsaldan1
      @fsaldan1 Před 2 lety

      PyCharm is another good alternative. The Cmmunity Edition is free. The Professional Edition is superior to Spyder in my opinion but costs $200 for the first year while Spyder is free.

  • @MichaelKelleyAZ
    @MichaelKelleyAZ Před 5 lety +1

    Great video. Thanks for all your hard work.

  • @angry-biscuit
    @angry-biscuit Před 5 lety +3

    Now this is what quality content means

  • @Jockster74
    @Jockster74 Před 4 lety +1

    Thanks so much for an excellent video - saved me tons of time!

  • @marufbepary100
    @marufbepary100 Před 3 lety

    I already have VSCode set up fully for Python and Java and I'm still watching this video to learn something new,

  • @huydong3292
    @huydong3292 Před 3 lety

    Thank you Corey. I really love this awesome video.

  • @johnbhosale
    @johnbhosale Před 4 lety

    Thanks! Corey, this was very helpful.

  • @angelanorris546
    @angelanorris546 Před 4 lety +1

    Clear and to the point. Thanks

  • @krishnak3532
    @krishnak3532 Před 5 lety +1

    This is awesome video for vscode usage.. thank you

  • @praveenrajsr2112
    @praveenrajsr2112 Před 5 lety +3

    overwhelming! Awesome Thanks! :)

  • @rickjohnston6198
    @rickjohnston6198 Před 3 lety

    This is the best tutorial video I've ever seen :)

  • @redteamecho1024
    @redteamecho1024 Před 2 lety

    Really nice video! Thanks for making it.

  • @ikemmachimezie6724
    @ikemmachimezie6724 Před 2 lety

    We need more video like this from you guys. Keep this energy flowing, ❤❤ u guys
    #mezieProgrammer cares 🙌🙌

  • @catmantech207
    @catmantech207 Před 2 lety

    Lots of valuable information in the video. thank you for the content.

  • @eenhalvekilokaas
    @eenhalvekilokaas Před 3 lety +1

    Amazing tutorial! Thank you :)

  • @reteshgorai3418
    @reteshgorai3418 Před 5 lety +1

    This video is really too good. Thank you.

  • @danieleperera6788
    @danieleperera6788 Před 5 lety +1

    awesome video. Thanks a lot. Keep up the good work.

  • @giacomoluppi5580
    @giacomoluppi5580 Před 4 lety

    this is pure gold thank you man

  • @alexandromariocirpaci2782

    I really appreciate your channel, keep up the good work

  • @crumbs4753
    @crumbs4753 Před 5 lety +3

    Thanks for sharing your knowledge.

  • @matthewwilliams7011
    @matthewwilliams7011 Před 9 měsíci

    this is simply and amazing tutorial. it was extremely useful, thank you sir

  • @mikeafter5
    @mikeafter5 Před 3 lety

    Thanks for the overview.

  • @alank3648
    @alank3648 Před 3 lety

    Amazing! thank you so much for your time and efforts!

  • @modakad
    @modakad Před 7 dny

    w.r.t. the Debugger, adding variables to WATCH and Interactive Debug Console are really useful features. Corey is the best !