Master VS Code's keyboard shortcuts in 13 minutes

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

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

  • @JaderRubini
    @JaderRubini 6 месяцев назад +38

    As someone who’s transitioning from VS Code to Neovim (just because I got tired of VS Code eating up my battery even when not running), I came here ready to hate but I just loved this video. Congrats, that was really fun and helpful

    • @bob84409
      @bob84409 6 месяцев назад +18

      We'll wait for you to come back after 2-3 weeks of trying to get everything to work together. By the time you manage to get CMP, LSP, snippets, terminal, debugging, launch tasks and on and on to work, neovim all of a sudden isn't as fast as it's used to be in its vanilla form. Then you will realize that there's no easy way to get per project config going, aka profiles. As a fully loaded ide neovim will eat your battery as well as vscode. I'm speaking from personal experience. Having gone neovim route twice o keep coming back to vscode. The key is to setup you keyboard shortcuts to mimic neovim. I can work in vscode without touching the mouse and then switch to neovim and use nearly identical shortcuts there.
      Vscode works for you, and you work for neovim.

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

      Hi! Do you know how to bring the same search experience from neovim to vs code?
      I really like quick fix lists in nvim. Thanks

    • @jamtart22
      @jamtart22 4 месяца назад

      The arrogance is real 😂

  • @abhinav-singh
    @abhinav-singh 6 месяцев назад +10

    Ctrl + Shift + Left arrow after Cmd + Shift + Left arrow is what I needed the most. Thanks for the awesome shortcut.

  • @crackwitz
    @crackwitz 6 месяцев назад +12

    You know what would help? An add-on that hints the shortcut for every action you just performed with the mouse.
    And then someone should collect telemetry on that and consider how convoluted some of those shortcuts are.

  • @LaserGoPEWPEW
    @LaserGoPEWPEW 6 месяцев назад +1

    Cmd + T changed my life. Thank you!

  • @RamunDev
    @RamunDev 4 месяца назад

    Ctrl + B is what i always wanted, i would normally use the mouse to close the side menu but this will save me time, thanx

  • @bhanussanghi
    @bhanussanghi 6 месяцев назад +1

    CMD+0/1/2 have become my new favs!

  • @mattdavies191
    @mattdavies191 4 месяца назад

    More modern editors tend to focus more on useability of the ui design and support for popular default shortcut conventions to get traction with users in the short to medium term. This is a practical and important strategy to succeed in a faster moving world. However little details that made a difference for the hardcore hackers are still missing. For example, years ago I put in a ticket so that a vscode user's customised editor keys could also be used in the text fields and ui widgets for consistency and because they break muscle memory and keyboard ergonomics. I don't know how that is going, but recent ticket updates indicated that this could finally be getting attention. The small details like this really boost shortcut efficiency in the long term.

  • @DsComputerWorld
    @DsComputerWorld 4 месяца назад +1

    Thanks for the keyboard shortcuts. I ❤❤❤❤❤ VS code. It 's the best code editor amder for programmers. It is very flexible and easy to operate. And packed with a lot of features. I have been using it for 4 years

  • @Gabonidaz
    @Gabonidaz 6 месяцев назад +17

    Would be nice to have the equivalent commands for windows ... Select the block is not Ctrl + Alt + Right Arrow but Shift + Alt + Right Arrow instead. I'm interested in a vim extension tutorial.

    • @code
      @code  6 месяцев назад +4

      we've got vim on the TODO list!

    • @voidmind
      @voidmind 6 месяцев назад

      Yeah, it would have been nice to have a shortcut that selects a whole function. Sucks that it's Mac only.

  • @nathsimpson
    @nathsimpson 6 месяцев назад +8

    This was a great video! 💯 would love to see a vim extension video too

    • @code
      @code  6 месяцев назад

      Noted!

    • @nikilk
      @nikilk 6 месяцев назад +1

      Yeah vim is just awesome once you get used to it.

  • @DarkzarichV2
    @DarkzarichV2 6 месяцев назад +3

    9:58 there is a terminal tool called "exa", self-proclaimed modern "ls" it has icons, colors, better formatting overall, i'd really recommend you to try this. The command for fancy output might be pretty long but with aliases I made it just "ll"

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

      You can add colors to ls with --color

  • @ardianhotii
    @ardianhotii 6 месяцев назад +1

    CTRL + T its gonna be my new very used shortcut , thanks

  • @edwardspresume
    @edwardspresume 6 месяцев назад +5

    I believe it's `SHIFT + ALT + LEFT ARROW` to expand selection to select an entire code block in windows by default atm

  • @magnetholik3618
    @magnetholik3618 6 месяцев назад +1

    Nice video. I am fairly good about using keyboard shortcuts but there are so many I don't know about, and I am glad you introduced some in this video. I also use vim and wouldn't mind a video on that! Thanks for the nice video.

  • @ajassharafudeen
    @ajassharafudeen 4 месяца назад

    alias. That's what I need the most. I don't have to keep typing out 'npm run dev', i can type d and enter.
    That's powerful.

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

    Great video, may I know which theme are you using.

  • @JaimeBIDtravel
    @JaimeBIDtravel 6 месяцев назад

    Always great to learn these useful things

  • @k16e
    @k16e 6 месяцев назад +1

    Well done! Wait, what shortcut focuses the comment form here on YT?

  • @vivekchahal5683
    @vivekchahal5683 6 месяцев назад

    I got some new keys on my keyboard for VSCode that I can now use during my coding hours.😃😃😃😃😃 I loved it.

  •  6 месяцев назад

    On symbols menu (Cmd+Shift+O), type @: for sort functions, properties & variables.

  • @TheTomorrowDream
    @TheTomorrowDream 6 месяцев назад

    Great video, learned lot of stuff!

  • @MartijnBunschoten
    @MartijnBunschoten 2 месяца назад

    after navigating to the left menu, how do you open a file, or open a directory to search? For some reason does not work

  • @manishgautam2424
    @manishgautam2424 6 месяцев назад

    great video ,loves that

  • @horizonmultimedia7369
    @horizonmultimedia7369 4 месяца назад

    Great video

  • @andreaswenzel3089
    @andreaswenzel3089 6 месяцев назад

    Thanks, Rob!

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

    I think Ctrl-Backtick is useful for opening (and closing) a terminal in the bottom window.
    bottom window is usually more useful just to run the code?
    But now I see it - bottom window is really messy, lots of unused stuff,
    probably need to change it to open a terminal in the bottom window.

    • @code
      @code  5 месяцев назад +1

      Thanks for the feedback, Alexander.

  • @DarkzarichV2
    @DarkzarichV2 6 месяцев назад

    3:54 Shift + End on Windows, Ctrl + Shift + End will select everything until the end of the file

  • @teatime6629
    @teatime6629 6 месяцев назад +1

    I am so glad your channel came through! 🫶🙌

  • @BernardoGomesdeAbreu
    @BernardoGomesdeAbreu 6 месяцев назад +1

    Thanks for sharing !!
    I expected more focus on vs code. Maybe for future splited video to alias, makefile and so on...

  • @oscardiggs246
    @oscardiggs246 6 месяцев назад

    now I just need to find the real shortcuts for windows, but thanks for showing what's possible. knowing is half the battle, I hear.

  • @HamzaG12
    @HamzaG12 6 месяцев назад

    Amazing!!

  • @angelclaudio604
    @angelclaudio604 6 месяцев назад

    Great video! What extension is being used so that in the terminal you see a chevron with the apple icon, current directory, and git status?

    • @code
      @code  6 месяцев назад

      ohmyz.sh/

    • @martingauthier5245
      @martingauthier5245 4 месяца назад

      @@code Any insight on the theme / plugins use with omyzsh to make it look like this ?

  • @YEM_
    @YEM_ 6 месяцев назад +7

    Ctrl shift P... You can press F1 instead. So much easier.

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

      Yes, because F1 is so close to the home row... 🙈

  • @AdamtheADHDev
    @AdamtheADHDev 6 месяцев назад

    A video on vim extensions would be awesome.

  • @b25671
    @b25671 6 месяцев назад

    Thanks for the poem

  • @bpajak
    @bpajak 6 месяцев назад

    I do vscode on windows and ash into a Linux machine. I would love to see a video on how do display x apps back to vscode/windows so I don't need a separate vnc session

  • @tridibbiswas3361
    @tridibbiswas3361 6 месяцев назад

    Thank you for the video. May I ask the perhaps the most cliched question- what is the theme and the font you are using

    • @CrazySalieri
      @CrazySalieri 6 месяцев назад

      Theme is called night owl

    • @code
      @code  6 месяцев назад

      Started with Night Owl, moved to GitHub Blue. Font is Inconsolata :).

  • @lakshman587
    @lakshman587 6 месяцев назад

    Which fingers do you use for cmd+0 and cmd+1 to switch between editor and explorer.

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

      Just remap these two into cmd+1 and cmd+2, way more comfortable.

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

    I like the way you smoothly transit from teaching vscode shortcut to teaching linux command and teaching makefile

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

      Glad you enjoyed the carefully crafted transitions!

  • @WebDeveloper-xs4uf
    @WebDeveloper-xs4uf 6 месяцев назад

    You could have included a pdf so we can print off the short cuts lol. Is there a shot cut for live server?

  • @aoa0202
    @aoa0202 6 месяцев назад

    same theme!❤

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

    I'd be down for the vim extensions

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

    7:00 I don't see the convenience of using the integrated terminal as opposed to a dedicated terminal application like Windows Terminal.

    • @code
      @code  5 месяцев назад +1

      it's a preference - its nice to not be able to leave your editor. also, github copilot works in the vs code terminal if you have that extension.

  • @alexanderopalic1873
    @alexanderopalic1873 6 месяцев назад

    a video how to learn vim and use it in vscode would be nice

  • @maloukemallouke9735
    @maloukemallouke9735 4 месяца назад

    thank you for share
    but unfotuntly the conf of vscode depend on the os config for example terminal are rely hard to switch fom it to editor and vice versa i am waiting a update about terminal command

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

    when i save a new file as ipynb, vscode automatically add .i at the end? why is that?

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

      it still do that after i create a new profile without any extesion

  • @nanonkay5669
    @nanonkay5669 6 месяцев назад

    I'm on way to moving away from vscode to neovim, using Lazyvim

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

    Font name?

  • @vanvothe4817
    @vanvothe4817 6 месяцев назад

    Modifier keys such as Ctrl and Alt on today's keyboards are always in uncomfortable positions, so using shortcuts is almost inconvenient and difficult to type accurately.

  • @sledgex9
    @sledgex9 6 месяцев назад

    Shit+Alt+Left Arrow doesn't work on C++ files (Windows). After the 2nd/3rd tap it selects the whole file instead of the current block (which is a class method implementation).
    Also on Windows to change tabs SHIFT+CTRL+} doesn't work. You need Ctrl+Tab and Ctrl+Shit+Tab.

    • @sledgex9
      @sledgex9 6 месяцев назад

      I know what the issue with block selection is. The command matches brackets. If the opening bracket is on a newline (after the function name), you must begin Shift+Alt+Left Arrow with the cursor on the line with the opening bracket.

  • @thedelanyo
    @thedelanyo 6 месяцев назад

    I found using the mouse together with the keyboard makes my hand not being lazy 😅😅😅

  • @cb73
    @cb73 6 месяцев назад

    Hey I remember you from way way back

  • @vencislavvidov
    @vencislavvidov 6 месяцев назад

    nice, but i wonder if there is alist with shortcuts:)

    • @code
      @code  6 месяцев назад

      Yes! CMD-K-S on a Mac, CTRL-K-S on Windows :).

  • @john_hind
    @john_hind 6 месяцев назад

    Opening the command palette is 'probably the most important command' as you say, but given this, why the hell do the VS team make it so stupidly difficult to remember and actuate? I mean, a three key chord! Why not assign the most important thing to an 'F' key? Plus for those of us who are complete mouse holdouts, would it kill you to have something clickable on the interface to bring it up?

    • @tranphuvinh8428
      @tranphuvinh8428 6 месяцев назад

      You can change the key bind, no?

    • @code
      @code  6 месяцев назад

      F1 will open it. You can also do some interesting things...like...DOUBLE SHIFT! ruclips.net/video/9vFTkFLr_gI/видео.html&ab_channel=VisualStudioCode

  • @Lukas_Leipzig
    @Lukas_Leipzig 6 месяцев назад

    ❤👍🏼👍🏼👍🏼

  • @jeroboam4486
    @jeroboam4486 6 месяцев назад +1

    In true Microsoft fashion, let's ignore Linux users (and no, the shortcuts aren't all equivalent to Windows, see reformat code for example).

  • @zanylyf
    @zanylyf 6 месяцев назад

    please microsoft do a ui refresh of vs code it looks too old and dosent go with the windows theme

  • @stylinali
    @stylinali 6 месяцев назад

    if SHIFT+CTRL + RightArrow don't work then then try Shift+Alt+RightArrow

  • @nmastroianni
    @nmastroianni 6 месяцев назад

    Yes for VIM videos. I believe "this is the way."

  • @ash44445
    @ash44445 6 месяцев назад

    👍

  • @MahbodHastam
    @MahbodHastam 6 месяцев назад +1

    Just install VIM.

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

    vim video please.

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

    They are telling you to use neovim simply and stop using the clunkly editor THANKS

  • @rickdg
    @rickdg 6 месяцев назад

    Just use vim motions, bro

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

    First. We are not friends. Secondly, you don't even know what you are saying as the "windows" key is an ambiguous term. CTRL is Not the windows key ! "windows" is Windows ?or the equivalent to your command key of your Mac which sometimes is the CTRL key ???

  • @MG-bm5oj
    @MG-bm5oj 6 месяцев назад +1

    Masters don’t use arrows. They are too far and cause waste of time

  • @aNeutrino
    @aNeutrino 6 месяцев назад

    How can Mac be considered a valuable first choice for such an important video?

    • @YEM_
      @YEM_ 6 месяцев назад

      @@aNeutrino Mac is just so much more common in the tech world.

  • @joschomo1010
    @joschomo1010 6 месяцев назад +1

    Or just use vim like a actual programmer

  • @xiaohaihuang4890
    @xiaohaihuang4890 6 месяцев назад

    why don't you use Microsoft Windows?

  • @DrJayTap
    @DrJayTap 6 месяцев назад

    Thanks! But begging for likes and subs is pathetic, so disliked for that. You are no different than a pan-handler. Don't you realize that? Good content gets likes/subs without having to beg... so just be better and you won't have to make everyone else's experience worse so you can scrape by doing less. Cheers.