Fireship · @fireship

25 VS Code Productivity Tips and Speed Hacks

Uploaded June 14, 2021 · Length 11:35

25 VS Code Productivity Tips and Speed Hacks

Summary

Learn 25 productivity tips and speed hacks for Visual Studio Code to write and analyze code faster.

  • vscode productivity
  • vscode speed hacks
  • visual studio code tips
  • coding productivity
  • software development

Transcript preview

The first 2 minutes of the transcript. Select a timestamp to watch that moment on YouTube.

  1. 0:00

    visual studio code is like a knife it's

  2. 0:02

    only as good as the hands that wield it

  3. 0:04

    but unfortunately it has more knobs than

  4. 0:06

    a fighter jet and requires the steady

  5. 0:07

    hand of a surgeon to the untrained eye

  6. 0:09

    vs code is just a simple text editor

  7. 0:11

    like microsoft word with code

  8. 0:13

    highlighting

  9. 0:13

    but in reality it contains a ton of

  10. 0:15

    productivity boosting features that

  11. 0:17

    you're probably not using yet

  12. 0:18

    in today's video we'll compare amateur

  13. 0:20

    vs code techniques to the ones used by

  14. 0:22

    professionals allowing you to write and

  15. 0:24

    analyze your code faster

  16. 0:25

    because the most valuable thing you own

  17. 0:26

    in this world is your time if you're new

  18. 0:28

    here like and subscribe then leave your

  19. 0:30

    best vs code pro tip in the comments

  20. 0:32

    i'll choose one of them to win this free

  21. 0:33

    t-shirt next week and now let's jump

  22. 0:35

    right into things by installing vs code

  23. 0:37

    once installed you'll want to open up a

  24. 0:39

    directory with some files in it maybe

  25. 0:40

    you just generated a new astro project

  26. 0:42

    from the command line

  27. 0:43

    then to open it in your editor you pull

  28. 0:45

    up the file explorer and click

  29. 0:47

    open with vs code that works but it

  30. 0:49

    would have been much quicker had you

  31. 0:50

    done it from the command line if you're

  32. 0:51

    in the terminal and want to open a

  33. 0:53

    directory or edit a file you can do that

  34. 0:55

    quickly with the vs code cli

  35. 0:57

    using the code command but keep in mind

  36. 0:59

    if you're on mac or linux you need to

  37. 1:01

    first add the binary to your path

  38. 1:03

    now that we have the editor opened it's

  39. 1:05

    tempting to go around two different

  40. 1:06

    windows with the mouse and click on

  41. 1:08

    buttons to run commands just like we

  42. 1:09

    would with any other software

  43. 1:11

    but here's a little productivity secret

  44. 1:13

    the less you rely on the mouse the

  45. 1:15

    better

  46. 1:15

    vs code allows you to use the mouse for

  47. 1:17

    everything making the tool approachable

  48. 1:19

    but that's really the most efficient way

  49. 1:20

    to get things done you don't have to go

  50. 1:22

    crazy and learn something like vim or

  51. 1:23

    emax

  52. 1:24

    but it's important to understand that

  53. 1:25

    anything you do with your mouse can

  54. 1:27

    likely be done quicker with the keyboard

  55. 1:29

    virtually every command you see in the

  56. 1:30

    vs code window can be done with a

  57. 1:32

    keyboard shortcut you don't need to

  58. 1:33

    memorize them all but knowing about 10

  59. 1:35

    to 20 will literally change your life

  60. 1:37

    letting go of the mouse may not feel

  61. 1:38

    natural at first but mastering the

  62. 1:40

    keyboard is a lot like learning to play

  63. 1:42

    an instrument

  64. 1:42

    it takes a lot of practice but

  65. 1:43

    eventually it becomes second nature the

  66. 1:45

    first shortcut you'll want to memorize

  67. 1:47

    is control papa

  68. 1:48

    which brings up the command palette the

  69. 1:50

    beauty of the command palette is that it

  70. 1:51

    gives you all the power of vs code from

  71. 1:53

    the keyboard without having to memorize

  72. 1:55

    a bunch of key bindings

  73. 1:56

    by default it will give you a list of

  74. 1:58

    recently opened files

  75. 1:59

    in addition you can start typing a file