10 Best VSCode Keyboard Shortcuts

Поделиться
HTML-код
  • Опубликовано: 21 авг 2024
  • Full Keyboard Shortcut Video: • 10 Essential Keyboard ...
    Article Version: blog.webdevsim...
    🌎 Find Me Here:
    My Blog: blog.webdevsim...
    My Courses: courses.webdev...
    Patreon: / webdevsimplified
    Twitter: / devsimplified
    Discord: / discord
    GitHub: github.com/Web...
    CodePen: codepen.io/Web...
    #Shorts

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

  • @WebDevSimplified
    @WebDevSimplified  2 года назад +43

    Full Keyboard Shortcut Video: ruclips.net/video/GmdN0kQ2rIs/видео.html
    Article Version: blog.webdevsimplified.com/2020-08/10-best-keyboard-shortcuts

    • @QwDragon
      @QwDragon Год назад +3

      Ctrl+X is cut, not delete.

  • @BenjaminAster
    @BenjaminAster 2 года назад +257

    F2 renames a variable or an HTML tag, which is super userful.

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

      Or a file or a directory as well

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

      Yes I use it all the time

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

      thank you thank you

    • @shuvkareview1223
      @shuvkareview1223 Год назад +6

      Use auto Rename tag extension instead

    • @maelstrom57
      @maelstrom57 10 месяцев назад +2

      ​@@shuvkareview1223 Nope, VSCode has that built in now.

  • @FunctionGermany
    @FunctionGermany 2 года назад +72

    Ctrl + Shift + O: search for variables, functions, classes etc. in the current file
    Ctrl + T: the same but for your entire workspace
    Ctrl + ß / ` (german keyboard, it's the two keys left of backspace): change indentation of current line or selection to the left or right

    • @adamandom
      @adamandom Год назад +3

      Yeah these are all great.
      For the record "ß / `" keys on english keyboards are open and close square [] and curly braces {}.
      You can also do shift + tab to change indentation of a line/ selection to the left. Regular tab only moves a selection to the right though, not individual lines but I cant break the habit.

  • @MrSsnowBalls
    @MrSsnowBalls 2 года назад +85

    I feel proud of myself for knowing all of those

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

      How to know who is calling the function in vscode?

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

      ull feel even prouder after learning vim

  • @RyanScarbrough
    @RyanScarbrough Год назад +15

    This should be taught in every programming course, wow.

  • @citizen320
    @citizen320 Год назад +4

    ctrl+shift+E is exactly what I was looking for to reduce mouse bouncing. thank you! subbed!

  • @AFTstorm
    @AFTstorm Год назад +9

    Realistically im gonna remember about 3 of these

  • @unknownfox274
    @unknownfox274 2 года назад +13

    Also don’t forget CTRL + G so you can go anywhere on the line of your code

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

      I always forget that and instead just hit Ctrl+P and add a colon

    • @prosperenwerem
      @prosperenwerem 8 месяцев назад +1

      Honestly this has never being useful for me

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

    20mins worth of content (for other youtubers) compressed to one video. Way to be efficient WDS! Thank you!

  • @MuhammadYusuf-tr3xe
    @MuhammadYusuf-tr3xe Год назад +1

    Additional tips: while ctrl+D is used to select the next highlighted word, you can use ctrl + K to skip the current instance of the highlighted word

  • @salehmarji424
    @salehmarji424 2 года назад +10

    This was the fastest quick tip video I've ever watched :), well done

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

    Alt + Arrow Left: goes to the previously clicked line of code
    Alt + Arrow Right: goes back before the Arrow Left

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

      Yo, how can I didn't know this! Thank you!

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

      ​@@aldyreal This one is so helpful when you have a lot of tabs open 😁

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

      @@daviyamashita2132 You're right! Thank you so much!!

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

    Yup, knowing your preferred editor is a major contribution to productivity.

  • @SalmanKhan-gj2hq
    @SalmanKhan-gj2hq 2 года назад +70

    Ctrl+x cuts the line, instead you can use Ctrl+Shift+k to delete a line

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

    try: Alt + Ctrl + arrow up/down => Multiple selection
    try: Ctrl + space => Automatic completion

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

    Great Video, Kyle! Thanks so much for continually sharing your skills and teaching! Proof of the phrase "You can always learn something new!". Cheers!

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

    I write React in VS Code all the time and I still find something I didn’t know in each of these videos. Thanks man

  • @adamandom
    @adamandom Год назад +4

    Some more useful ones I use pretty often:
    ctrl + shift + L - Select all occurrences of the selected text in the same file
    ctrl + ' - toggles the integrated terminal
    ctrl + B - toggles the side panel (explorer view)
    (while in find with ctrl + F)
    Enter - to next occurence
    Shift + Enter - previous occurrence
    mouse wheel down + move mouse up/down - creates multiple selectors that try to be on the same level for each line they go through
    alt + scroll - scrolls 10x faster

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

      ctrl + f2 to change all occurances

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

    Ctrl Shift F isnt mentioned here but it's the single greatest shortcut that boosted my productivity

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

    wow..what a short and sweet video..every second pays off..

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

    Love your short videos! Great content, thank you 🤟

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

    Thank you! Been looking for something like this.

  • @greendragon0009
    @greendragon0009 2 года назад +15

    You're better than a swiss army knife! Thanks for all you bring to the table. :)

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

    For users in a Mac/OSX environment, many of these are accessible using 'command' key in place of 'control' key

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

    The multiple lines at once could have saved me hours of coding on past projects

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

    Use an extension: Multi cursor select
    This will helps you to modify multiple words using ctrl + D but this time it will works for same words with different case

  • @princeofexcess
    @princeofexcess 2 года назад +7

    f2 can be better at renaming variables depending on circumstances.

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

      F2 is better in every circumstance compared to ctrl+d. Ctrl+d takes more keystrokes and is controlled by the user which makes it prone to error. F2 is one key and the computer renames all the occurrences variable in the scope and even across files if exported.

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

      ​@@kadensharpin2156​it depends sometimes you want to rename outside of scope, change name inside a comment or import, but in general i agree. Hence my comment

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

    Thank you I have been looking for the ctrl c ctrl v function for 40 minutes

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

    Command option and up or down arrow adds a cursor above or below

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

    To add to that, here are some mouse 'shortcuts' as well that are very helpfull while programming, but works in your whole OS (by default):
    Doubleclick on a word selects the whole word (Works good if you use variable names in camelcase or underscore, but not with dashed/hyphened names). Tripleclick on a line of text selects the whole line.

    • @JJ-qv8co
      @JJ-qv8co 2 года назад +1

      oh wow .. thanks eistein! All of us are humbled by this great advanced theoretical CS knowledge you have bestowed upon us.

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

    Good tips video man, really helpful

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

    In Atom editor you can do the same except you have to use ctrl instead of alt.

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

    This was really helpful thank you

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

    this dude is like my mom, my dad, my bootcamp professor and my therapist all in one person.

  • @saraaaa747
    @saraaaa747 11 месяцев назад

    Thank you so much!

  • @roshanlalsahu7846
    @roshanlalsahu7846 2 года назад +6

    ctrl/cmd + L to select a line

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

    Alt ctrl and the arrow keys allow multiple line edits as well.

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

    ctrl + x was awesome!

  • @hoang-himself
    @hoang-himself 2 года назад

    Default shortcut keys changes iirc, so the best way to learn this is open the keyboard shortcut settings and read the combinations

  • @user-il7wq2ec9x
    @user-il7wq2ec9x 6 месяцев назад

    Awesome thank you!

  • @JacobIX99
    @JacobIX99 7 месяцев назад

    Great tips!

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

    The best shortcut, Ctrl shift I. Which is place curser at end of every selected line

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

    Imma use that ctrlD thanks Kyle

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

    The two shortcuts I can't live without are for inserting an empty line above or below of wherever the caret is. I don't know these shortcuts in VSCode because I use WS.

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

    Don't select all instances of a variable you want to rename. Just select one and hit the F2 key.

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

      This is why he added "in a small scope", you don't always want to rename all objects with the same name

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

      @@balazsh2 But "in a small scope" is what the F2 key rename does. It literally renames only within the scope for the variable instance that you have selected. And you always want to rename all of the instances that are in the same scope.

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

    Thanks. That's cool!

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

    Instead of deleting a line using a cut save some room for your clip board and remap shift+del to delete line (from cut)

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

    Yes!! Thank you!

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

    shift + option up/down duplicates a line up or down

  • @aidennelson3171
    @aidennelson3171 11 месяцев назад

    Thank you for the commands, may God bless!

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

    Glad I use all of them on a daily basis 😂

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

    My mind got fucking blown away by the very first second of the video

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

    Just the YT short I had been looking for. Thanx @WebDevSimplified

  • @h3xad3cimaldev61
    @h3xad3cimaldev61 2 года назад +4

    Ctrl + x is a "standard" shortcut aka cut, it copies whatever you highlighted into your clipboard and deletes it from the textbox

    • @EminoMeneko
      @EminoMeneko Год назад +2

      Yes but the specific point here is nothing is selected yet it cuts the whole line. This is something I was looking for and I was million miles away from finding that one.

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

    mouse select + command + shift + L is the best for me.

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

    f2 for changing variable names.

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

    Really helpful tnx

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

    Oh no... I knew all of them already apart from the ctrl+D one!
    I can't imagine coding without these commands now... especially ctrl+P for switching between files!

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

    Ctrl + L to select a complete line ,
    Ctrl + Shift + L to select all the instance of word in a file and replaced at once.

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

    I was just about to make a markdown file for my colleagues. Actually coming from VS, we have a very handy Ctrl+L that cut the current line. I was trying to find how to do that in VS Code but apparently they did something smart I did not think about.
    There are other shortcuts I could tell about but let me instead give the ultimate one. Ctrl+K, S (Ctrl+K, Ctrl+S if you prefer.) shows a list of shortcuts that can be looked up and set.
    P.S. : BTW, in VS Code Ctrl +L is actually Ctrl+D on the whole file.

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

    this guy just went super speed and I caught everything he said am new to programming but not to shortcuts.

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

    Helpful!

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

    thanks bro

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

    Needed one👍

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

    very useful, 10/10

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

    Wow, good to know, thanks!

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

    Nitpick, adding an overlay of the key command so we can visually see what you're saying

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

    Thank you!

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

    IntelliJ with vscode keymap is simply the best.

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

    Thanks bro🙌🙌

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

    Very useful!

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

    Amazing!

  • @atnaszurc
    @atnaszurc 2 года назад +6

    On the comment functions:
    CTRL + K + C > comment out what you have selected
    CTRL + K + U > uncomment the selection.
    Quite useful as well!

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

      or CTRL + / to toggle between comment and uncomment

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

      he said you can use ctrl + / for that

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

      @@sorakasugano119 Yeah, but depending on your keyboard layout it might be easier with the shortcuts I shared.
      Also not sure if Ctrl + / will uncomment as well

    • @SalmanKhan-gj2hq
      @SalmanKhan-gj2hq 2 года назад

      @@atnaszurc it also uncomments

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

      @@sorakasugano119 i have a tkl iso hungarian keyboard so its kinda impossible to press ctrl + /

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

    Thanks for this shortcut tutorial video. You have a great concise, no friviality, approach to your videos. Very well done. On the subject matter at hand ,Unfortunately , like all MS software, is so feature rich, enhanced over time.I find that most keyboard shortcuts are so non intuitive due to the the trigger character , not even close to matching up with the intended functionality. I guess once you learn a few muscle memory might take over. Just sayin.

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

    Thanks bro❤

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

    Alt + Shift + F to format your code! Pretty sure it deserves to be in the top 3.

    • @mortsdans
      @mortsdans 2 года назад +4

      Just turn on Format on Save in settings

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

    Thanks.

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

    great short

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

    Ngl I forgot the Ctrl + Shift + L shortcut to select all occurrences of a selected word at once so much that I just use the less efficient Ctrl + D 10000 times 😂

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

    oooo I like alt plus arrow keys. I'm going to remember that one.

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

    Ctrl + shift + k to delete a line without copying it

  • @user-di2ry3th8q
    @user-di2ry3th8q Месяц назад

    Already knows this things

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

    I need one to change in double quotes

  • @yoni532s9M5w
    @yoni532s9M5w 8 месяцев назад

    Vscode dev discovers hotkeys

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

    Ctrl K + S saves all the files

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

    I personally prefer using F1 instead of ctrl+shift+p for inputting command

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

    Set the cursor to the start of the line and
    try pressing Shift + ALT + right arrow multiple times.
    You are welcome

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

    Would have been nicer with some keyboard overlay to show the pressed keys

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

    Make one for extensions

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

    Nothing was new for me, all I knew already 😁

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

    We didn't deserve this, thank you

  • @RajveerSingh-vf7pr
    @RajveerSingh-vf7pr 8 месяцев назад

    I would have loved it if these shortcuts were following a standard...
    Vscode and intellij and others all different

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

    I wish I could save this vid

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

    Do a video about Vim Keybindings, that's much more efficient.

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

      But the three people using vim probably already know them

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

      @@aaronrothwell7615 but you can teach people to use vim

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

      @@igorswies5913 I had the *pleasure* of using vi, 25+ years ago at university, so forget that noise.

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

      @@aaronrothwell7615 VI is worse than the vim extension

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

      @@igorswies5913 exactly, too many bad memories to use it 🤣

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

    Now I have to memorize all of this

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

    Just use vim mode it's way better. I recommend everyone learn vim keybindings.

  • @0797cjm
    @0797cjm Год назад

    Command + shift + L = select all occurrences

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

    Helpful

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

    Bro if only I could live with u 😭

  • @perfect.stealth
    @perfect.stealth Год назад

    I need to know what an EMERGENCY PIZZA is