Fireship · @fireship

VS Code Top-Ten Pro Tips

Uploaded June 7, 2018 · Length 9:36

VS Code Top-Ten Pro Tips

Summary

Learn top 10 pro tips for using Visual Studio Code effectively, including hotkeys, command palette, snippets, intellisense, and debugging.

  • vs code pro tips
  • visual studio code tutorial
  • code editor productivity
  • vs code hotkeys
  • vs code snippets
  • vs code debugging

Transcript preview

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

  1. 0:00

    [Music]

  2. 0:06

    in just three years

  3. 0:08

    Visual Studio code has gone from being

  4. 0:09

    non-existent to the single most popular

  5. 0:11

    code editor among all developers

  6. 0:13

    according to the Stack Overflow 2018

  7. 0:15

    survey I personally like it because it's

  8. 0:17

    minimal yet super powerful and free and

  9. 0:20

    open source in this episode I'll show

  10. 0:22

    you exactly what I mean by taking you

  11. 0:23

    through my top 10 pro tips or using the

  12. 0:25

    BS code effectively if you're new here

  13. 0:27

    hit subscribe and you'll find a full

  14. 0:29

    write-up on angular firebase comm the

  15. 0:31

    first thing you should know is how to

  16. 0:33

    get around the file system quickly you

  17. 0:35

    can open up vs code by running code from

  18. 0:37

    the command line with the directory that

  19. 0:38

    you want to open it the quickest way to

  20. 0:40

    move around is to memorize a few hotkeys

  21. 0:42

    or key bindings if you hit ctrl K it'll

  22. 0:45

    bring up a full list of key bindings

  23. 0:47

    that you can search through and

  24. 0:48

    customize as needed but the single most

  25. 0:50

    important one is ctrl P which brings up

  26. 0:52

    the command palette we'll be using the

  27. 0:54

    command palette a lot in this video so

  28. 0:56

    don't forget this one to navigate

  29. 0:58

    between files you can simply start

  30. 0:59

    typing the file name and it will

  31. 1:01

    automatically search through your tree

  32. 1:02

    to find the corresponding file that's

  33. 1:05

    way quicker than trying to navigate

  34. 1:06

    through a directory tree by clicking but

  35. 1:08

    sometimes you might want to bookmark

  36. 1:09

    specific lines of code and navigate to

  37. 1:11

    them later for that I recommend using a

  38. 1:13

    bookmark plugin which will allow us to

  39. 1:15

    highlight a block of code set a bookmark

  40. 1:17

    number for it and then easily navigate

  41. 1:19

    to it later on using that command

  42. 1:21

    palette and BS code as you probably

  43. 1:23

    noticed I'm here in an angular project

  44. 1:24

    so I'm going to install some snippets to

  45. 1:26

    generate a lot of the boilerplate code

  46. 1:28

    for me and angular we have two really

  47. 1:30

    good snippet libraries one from Mike

  48. 1:32

    Moreland and one from John Papa and you

  49. 1:34

    can use them both together when you

  50. 1:36

    install snippets they're automatically

  51. 1:38

    added to the vs code intellisense so say

  52. 1:40

    I need to code up something really

  53. 1:41

    tedious like an NG switch statement I

  54. 1:43

    can simply start typing the prefix in

  55. 1:45

    the snippet library and it will

  56. 1:47

    automatically generate this code for me

  57. 1:49

    there's even snippets available for

  58. 1:51

    libraries like angular material ng XS

  59. 1:53

    and many others number E is vs codes

  60. 1:56

    integrated command line terminal you can

  61. 1:59

    pull it up by simply dragging from the