Powerful VSCode Tips And Tricks For Python Development And Design

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

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

  • @ArjanCodes
    @ArjanCodes  3 года назад +78

    Happy new year everybody. I wish you a healthy, very successful 2022!

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

      Happy new year 🥳

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

      Happy new year sir!!!!!!!!!

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

      Happy new year to you as well Arjan. Keep up the good work, loving your videos :)

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

      Thank you, happy new, and all that is good to you and your family.

    • @top-notch-tech
      @top-notch-tech 3 года назад

      Happy new year to you and your family. Looking forward to learning lots new things from your channel in 2022!

  • @aadithyavarma
    @aadithyavarma 3 года назад +191

    Hi Arjan, Can you do a video on how to correctly package a python codebase so that it is easy to move it everywhere? There seems to be multiple approaches and it would be great if you can show a complete demo of this. Thank you!

  • @soyciro4623
    @soyciro4623 2 года назад +2

    I didn't even finish the video and just liked it and got subscribed to your channel.
    I actually like the style and the effort you put into your content!
    Keep it up!

  • @ChongFrisbee
    @ChongFrisbee 3 года назад +15

    I recently moved from vscode to vim. I share the "I'm old" sentiment, but I was having a hard time with syncing and updates using vscode in different computers. Vim solved all these issues for me, trivially. And I gained modal editing from it. With only the cost of a lot of researching hours and a couple of weeks of severely hampered productivity... totally worth it!

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

      Yeah I agree. Been using vim for 9 year's and neovim for 3. NeoVim 0.5.0 with the LSP built in is nice.

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

      "Protip: Delete VSCode" has been, and will remain, my advice to young coders.

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

      Literally the only thing I like VSCode for over Vim is the code navigation in VSCode is easier to set up than in Vim. Once set up, Vim is just as capable of not more so, but VSCode is just easier to set up.

  • @sleao_
    @sleao_ 3 года назад +13

    If you use WSL on Windows, you can setup oh-my-zsh and use a terminal like the Windows Terminal or Hyper intead of iTerm2...

  • @theskullhead100
    @theskullhead100 2 года назад +5

    I just found your content and I'm so excited!! As an intermediate software engineer that loves Python your content is exactly what I've been looking for to level myself up.

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

      Thank you Gabriel, glad you're here!

  • @willemvdk4886
    @willemvdk4886 3 года назад +1

    Gelukkig nieuwjaar alvast, Arjan! Ga zo door met je video's want ze zijn top Notch!

    • @ArjanCodes
      @ArjanCodes  3 года назад +1

      Dankjewel Willem - de allerbeste wensen!

  • @johncrunk8038
    @johncrunk8038 3 года назад +1

    As usual, your video pours more into my brain than it can handle. But I keep trying. I have been using VSCode for a couple of years and have barely touched the surface. Great video.

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

      Thank you John, glad you liked the video!

  • @siflex
    @siflex 2 года назад +2

    @arjancodes .. 2 really nice navigation tips .. CTL-E and CTL-Y will scroll your window, retaining cursor position. H M L (I always think of it as High, Middle, Low) will put your cursor at the top, middle, bottom of the visible area.

    • @ArjanCodes
      @ArjanCodes  2 года назад +2

      Thanks Alfred, will remember this - I’m still a Vim noob, haha.

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

      @@ArjanCodes I'm coming from the other direction - have used vim and CLI forever and am trying to learn the benefits of VScode/IDE life. Always something new to learn. Thanks for your channel, it's been a nice watch.

  • @caiooliveira3818
    @caiooliveira3818 3 года назад +11

    Nice video. I used to code using Sublime Text, but I really like vscode extensions. Some of my favorites are:
    peacock - to set the color of the window (similar to what you did)
    todo tree - to highlight and bookmark FIXMEs and TODOs
    bookmark - pretty self-explanatory
    fix json - for unindented json files
    the "Remote" extensions - to work on remote servers and/or attach to containers

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

      Thanks for sharing!

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

      Can you use both django and python in sublime text as learner? I dont like vscode and dont want to pay money to pycharm pro edition

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

      Oh awesome, I've been wishing for something like todo tree! Thanks for the tip!

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

    I use mypy strict for type checking. The built in type checker provided by PyLance is Pyright for anyone who is interested.

  • @Bodillydog
    @Bodillydog 3 года назад +9

    Maybe it’s not so much for Python, but my current favorite extension has to be Rainbow Brackets. It is exactly what it sounds like, and is amazing for all the Latex that I write in Vscode

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

      that and rainbow ident.

    • @vedantsharma6113
      @vedantsharma6113 3 года назад +8

      @@spadedaman4958 Rainbow brackets are now inbuilt.

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

      @@vedantsharma6113 Rainbow ident != rainbow brackets my dude

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

    1:37 I'm old too this is why I'm sticking with C++ builder and Delphi. Been using it for 24 years now.

  • @Moonajuana
    @Moonajuana Год назад +1

    You're absolutely awesome! Thank you so much for all of content and information you've shared.

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

    Happy new year from thailand, Mr Arjan!

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

    Thanks Arjan. really liked the Mermaid extension👍

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

      Thanks - glad it's useful to you!

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

    There are few channels where i switch adblocker off. Great content.

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

    I actually started using vscodevim once I saw you use it in your videos

  • @timothysuhr7903
    @timothysuhr7903 Месяц назад

    One of the areas you talked about was using mermaid to do class diagrams. I would be interested in the capability of generating ISO 10303- 11 graphic diagrams, especially if they were SBG.

  • @rdcampbell1990
    @rdcampbell1990 3 года назад +2

    ohmyzsh can also display which python virtualenv you're in which is super helpful!

  • @АлексейСолнцев-п1ъ
    @АлексейСолнцев-п1ъ 2 года назад

    Great suggestion with titleBar color change! Always messed up when several windows were open.
    May inspiration be with you!✊👍

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

      Thanks so much Aлексей, glad it was helpful!

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

    Nice presentation, gonna check out Mermaid for sure.

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

    Mermaid was a cool tipp, I didn't know that yet. Thanks. Great fan of your videos =)

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

      Glad to hear you like the videos, thank you!

  • @ultralooter
    @ultralooter Месяц назад

    Awesome! I recognise your point about refactoring being better in Jetbrains IDEs.
    Is that something VSCode caught up to in the meantime or not?

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

    About the first one: There's also one called Oh My Posh, which not only visual customization is available for Zsh, but for all the others terminals: cmd, powershell, bash, etc.

  • @dimas-
    @dimas- 3 года назад +1

    Happy new year!
    Starship in my opinion is the best for customizing prompt. Works also with any shell.

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

      Happy new year - I'll look into Starship, thanks for the tip!

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

    This is very good! Just the tip on the type checking is very useful. Especially if you are part of a team with others who code in C++ etc.

  • @djl3009
    @djl3009 3 года назад +1

    Relative line numbers in vim are great when needed but if like me you prefer to have sequential line numbers on by default and only switch on relative line numbers when needed then you can do this quickly in command-mode with the following command
    :se rnu
    and switch it off (back to default line numbering) with
    : se rnu!

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

    I'm a huge fan of powerful tips and tricks 😬

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

    Great video, happy new year! ❤

    • @ArjanCodes
      @ArjanCodes  3 года назад +1

      Thank you - happy new year to you too!

  • @edgeeffect
    @edgeeffect Год назад +1

    One thing I always find difficult with Python is the sheer number of available linters and checkers. I love static analysis but I can't sensibly run all of these tools and I like to find "the best". I've recently come across a new checker and formatter called "ruff" which sounds interesting as it claims to be a reimplementation of the best of the others. An episode on linters and checkers and formatters would be great!

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

    PyCharm (pro) integrates other JetBrains' products like WebStorm and DataGrip hence you have a complete set of tools including web development and databases

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

    Arjan you are more than university or any entity. Thank you so much. I should find a way to buy your courses. I need your material strongly for my career.

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

      I'm glad my content as been useful for you, Esmael!

  • @PauloFassina
    @PauloFassina 3 года назад +12

    Great videos. I'm really enjoying the Data Science series. For someone who mostly does DS projects and does not have a formal software development background, having someone go through solid design principles to tackle DS problems is really helpful.
    On a side note, the email validation at your website is too strict and is not accepting emails with _ or . before the @ sign. I get the "Please double check your email address" error.

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

      Periods are ignored by email address parsers anyways so you should be able to submit your email without the periods no problem. I'm not sure if the same is true for underscores.

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

    Cool thanks for the pointer to the mermaid plugin 😀

  • @АлексейСолнцев-п1ъ
    @АлексейСолнцев-п1ъ 2 года назад

    Great suggestion with titleBar colour change! Always get confused when several windows are open.
    May inspiration be with you!✊👍

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

      Thanks so much Aлексей, glad it was helpful!

  • @jean-marcfraisse7191
    @jean-marcfraisse7191 3 года назад

    Happy new year Sir! Many thanks for your excellent videos! 👍

    • @ArjanCodes
      @ArjanCodes  3 года назад +1

      Happy new year! And glad to hear you enjoy the videos!

    • @jean-marcfraisse7191
      @jean-marcfraisse7191 3 года назад

      @@ArjanCodes Your videos are amongst the very few ones (on RUclips or elsewhere) that I recommend to my fellow devs/techs, actually 👍😃 Golden channel.

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

    i like your code along videos. maybe make a more videos like those. i like to follow your code and then go back to it at my own pace.

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

    Thanks for doing this video. I was using atom, but swapping to vscode with atom being deprecated.

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

    Would be interesting to have a follow up /update to this video now that many of the linting/formatting/etc tools such as Black, mypy, etc have been turned into separate extensions, and the old settings deprecated.

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

      Also that tip for setting the menubar to different colours for different projects is something I'd never thought about, but is a huge game changer for me as I'll often have 3-4 VS Code projects open at any given time & from the Mission Control view (swipe up with 3 fingers on trackpad) it'd always be hard to see which window was for which codebase. Now with the colouring it's really easy to spot the one I'm looking for.

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

    I recommend Peacock extension for changing the colors of top bar for different projects

  • @neoqiao
    @neoqiao 15 дней назад

    Hi Arjan, why my vscode does not suggest import QtWidgets from PyQt5 if I just type in QtWidgets? Python extension and other extensions already installed.

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

    Wonderful video. THanks!

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

      You're welcome, glad you enjoyed it!

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

    Great suggestion- Mermaid Support, now we need a complementary video.
    Now you just need to create a video about your thought process when developing the various classes in a project (including usage of Marmaid).
    Thx for all your videos

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

      Thank you Joseph, great idea!

  • @wa.6006
    @wa.6006 Год назад

    can you share the pylint config json you usually use, as a starter json config for me? :D

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

    I'm also old, but still change things up a bit, so I don't feel much older :)
    Thanks.

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

    Hi Arjan, for Optional types in pydantic classes, if I don't specify = None, pylance complains "Argument missing for parameter". Is there a way around this?

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

    re changing line: there's a shortcut to go to line with number you want. For me that's faster than you "relative line" solution. But defo it's personal taste :)

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

    @11:00 you make a fast line-navigation by keyboard, how this works exactly. best greatings and thanks very mutch.

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

    Good little tips and tricks!

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

    Thank you for this video.
    Im using VSCode as well, and for some reason, Im not getting import IntelliSense from my project's venv.
    If I manually type the import, it works, and VSCode recognizes the module. But Im not getting any IntelliSense for this import while writing (or asking for a fix action).
    Is it working for you? If so, can you explain how you enabled it?

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

    Can I sort on columns? I have big txt files with numbers in there but I want to sort records based on values in them from col A to Col B.

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

    Black, vim, oh-my-zsh ? Great minds think alike haha. I am using Pycharm but with the same plugins. Mermaid look cool too.

  • @aidanseals8368
    @aidanseals8368 11 дней назад +1

    where is he going to view his settings like that in vscode?

  • @georgegu3374
    @georgegu3374 3 года назад +2

    100% agree that pycharm is way better vs code. but still, i'd rather stick to a single ide that can get all works done (js, python, c, html, etc.) than use a best ide for each and every one task

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

    1:40 ~ 1:49 HAHAHAH Best part ever!!! Same here hahahah. Thanks for this video. Really cool content.

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

    Use Theme: Material Icon & Product. both together look very nice.

  • @robimalco
    @robimalco 3 года назад +3

    It will be painful at the beginning, but disabling your arrow keys will let you grasping Vim really fast
    nnoremap k
    nnoremap j
    nnoremap h
    nnoremap l

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

      Yeah... that might be the only way to really get over it.

  • @maryam4071
    @maryam4071 10 месяцев назад

    Hi, can you please share setting file? mine is empty , it's difficult to follow up from json file. if you share, I can import it. thanks a lot

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

    Such a great video, can you by any chance do this for C#?

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

    What browser are you using?

  • @gedtoon6451
    @gedtoon6451 5 месяцев назад

    I have my VS Code set up with python. I am using the 'Code Runner' extension to allow me to run my scripts by clicking on the 'play' icon at the top right of the window. I have configured the IDE to run scripts in the terminal. There is a drop down next to the play button and if I choose 'Run Python File' , output of the terminal looks correct. If I choose 'Run Code' I get lots of erroneous blank lines printed with output. Does anyone else get this? Does anyone have a fix?

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

    Hi ArjanCodes, congratulations on the excellent videos and explanations. I have a question:
    Is it possible in VSC for python to change the color of a class method in overload?
    Thanks again

  • @voxelfusion9894
    @voxelfusion9894 3 года назад +1

    You should probably add that stuff like Oh My ZSH are more "unix only", so Mac and Linux. To be precise.

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

    thank you for adding chapters

    • @ArjanCodes
      @ArjanCodes  3 года назад +1

      You're welcome. These details are important IMO, especially in educational content.

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

    can i get vscode to autofill my code like pycharm does?

  • @PAVANKUMAR-vx9ty
    @PAVANKUMAR-vx9ty 2 года назад

    can you please attach that .json in description.

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

    Anyone knows if the `source.organizeImports` setting is isort under the hood?

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

    Yes! Vim tutorials if possible

  • @andres-o9u
    @andres-o9u 3 года назад

    Hi Arjan, thank you for the videos

  • @danimperiale8545
    @danimperiale8545 3 года назад +3

    I use Spyder. It provides me an IDE where I feel I am always in debug mode. Whether or not I'm actually debugging at a breakpoint, I can still pop into ipython console and mock something up or check an assumption I have and see the variables. Kind of like a combination of Jupyter and an IDE. I really want to switch to VS Code because I like all the features but I feel like it slows me down because I don't know how to quickly and easily test things without actually having to set a breakpoint and enter debug mode. Do you have any advice to help make the switch more seamless?

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

      Come from a same angle, in the end I use both depending on what needs to get done. Spyder for more data/data science driven work and VSCode for more web dev/app building work, as they both integrate quite well with Anaconda environment for dependency management.

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

    Try Plant UML instead of Mermaid. It has many more diagrams and is consistent in syntax.

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

    Please can you do video's on IOT technologies, thus beginner's to advanced

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

    Nice music, where can I find it?

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

    You should give the dev containers extension a shot. Great way to decouple environments!

    • @ArjanCodes
      @ArjanCodes  3 года назад +2

      Good point, I definitely want to dive into using containers for development, that’s going to make my life a lot easier I expect.

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

    Hi, i will ask very simple question. How to jump to otherside of the bracket :(((

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

    I've been a long time emacs user. I just recently started using IDEs. I was recommended to use Intellij and PyCharm. And, I've been impressed with a few things, but mostly I've been frustrated using JetBrain's IDEs. Their interface is kinda clunky. It's hard to find things. It's unintuitive where to find things. For example things associated with project settings might not actually be in project settings. I've been wanting to try other IDE because I feel JetBrains stuff awkward. But, ultimately, I feel like going back to emacs and being the dinosaur that I am at my company. :)

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

      I mean Emacs is probably more of an IDE than all of those IDEs

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

    Please can you do video's on IOT technologies, thus beginner's to advanced 13:49

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

    4:06 what? Are you sure? Python extension auto-installs pylint?!?! 🤨
    I mean I also user BOTH Pylance and pylint but they have quite some overlap and I have quite a big block of disable statements to have Pylance immediately do the things that pylint would only do on save.

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

    I wonder if you have some tips for emacs as well :D

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

    Mermaid looks like a better PlantUML, as PlantUML needs a bunch of external programs to work. Does anyone know what that technique is called?

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

    This food gotta be so good, what do you order?

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

    On windows I found vs code to be much better than pycharm .. it does not take all memory ..with pycharm everything use to get stuck but with vs opening eSports game even does not show significant effects ..plus interface is quite good too

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

    Just reminder for all Windows users: you can use "Oh My Posh" to get these fancy terminal prompts

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

    I've also chosen -pain- Vim recently. I dunno if it makes me more productive, but it boosts my ego for sure. I like it!

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

    "Get off my lawn" xD you killed me

  • @OleksandrToropov-k4l
    @OleksandrToropov-k4l Год назад

    pycharm pro (paid version) works with js/ts fine as well

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

    I have a question. I’m really tired of searching. I’m a macbook user. And I’m new in vs code. My question is how to get rid of the file path in terminal specially when you run Python ?

  • @human_agi
    @human_agi 9 месяцев назад

    you are using users, my vscode is not like thar, how can you make custom for project than global?

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

    I use Neovim plugin for VS Code

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

    @1:30 I feel like I'm going to mess up the keyboard shortcuts.. SAME MAN!

  • @АртемФедоров-ю7б
    @АртемФедоров-ю7б 2 года назад

    to draw diagrams I highly recommend plantuml

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

    zed-shell ?

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

    thanks, but the extension neovim in better, because it works natively, and therefore is faster

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

      I didn't know that. I installed Vim because it's way more popular (over 3 million downloads vs Neovim which has about 120k downloads).

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

    js/py enthusiast here, posting just to appreciate effort, help yt algo

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

    "Get off my lawn" 😆👏😆🤭😆

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

    Mr Argan. When you will hire me ?

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

    OhMyZsh is not Mac only + you can install zsh fish or whatever she'll you'd like in a second on any Linux distribution, but OhMyZsh is unnecessary bloat anyway, just manually install the extensions you need, you can take ohMyZsh as an example/inspiration tho

  • @pedromogga6928
    @pedromogga6928 3 года назад +1

    Love your videos ... but getting back to your VS Code v Pycharm arguments .... Pycharm is brilliant for web dev too ...its not just Python ..... as long as you get the paid Prof edition. I am older than you and I found it easy to switch to Pycharm. If you do a lot of db work , Pycharm is also brilliant and way better than VSC and ADS. VSC for Python dev is 7.5/10 ... Pycharm Prof is 9.5/10.

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

    If vscode would only have an Ipython console where you can view variables easily...

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

      there is a scratchpad extension that does that