Fireship · @fireship

VS Code in 100 Seconds

Uploaded November 26, 2021 · Length 2:34

VS Code in 100 Seconds

Summary

VS Code tutorial for beginners: features, interface, and productivity hacks.

  • vs code tutorial
  • visual studio code
  • code editor
  • productivity hacks
  • 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 a free and open

  2. 0:02

    source program for editing code software

  3. 0:05

    is just a collection of text files

  4. 0:06

    organized in a precise way the s code

  5. 0:09

    provides an integrated development

  6. 0:10

    environment to help you edit analyze and

  7. 0:12

    manage these files efficiently it's a

  8. 0:14

    microsoft project that first appeared in

  9. 0:16

    2015 as a lightweight cross-platform

  10. 0:19

    code editor that ships a new update

  11. 0:20

    every single month today it's the

  12. 0:22

    world's most popular code editor

  13. 0:24

    download it then use it to open a folder

  14. 0:26

    that contains your application files

  15. 0:28

    before you can write high quality code

  16. 0:30

    you'll need to make the editor look cool

  17. 0:31

    by clicking the settings icon to update

  18. 0:33

    your syntax and icon themes next you'll

  19. 0:36

    notice the file explorer contains all

  20. 0:38

    the files in this directory open a file

  21. 0:40

    and notice how the text inside is

  22. 0:41

    colored that's because vs code analyzes

  23. 0:44

    the symbols inside the file to perform

  24. 0:46

    syntax highlighting it will

  25. 0:47

    automatically detect problems in your

  26. 0:49

    code if a variable is not used it

  27. 0:51

    becomes a little more opaque a red

  28. 0:53

    squiggly line appears if your code will

  29. 0:54

    not compile hover over it for more

  30. 0:56

    details it also creates an outline of

  31. 0:58

    the code structure to quickly navigate

  32. 1:00

    to the line of code that you're looking

  33. 1:02

    for now as you start writing some code

  34. 1:04

    in this file you'll notice a little box

  35. 1:05

    pops up as you type professional

  36. 1:07

    developers rarely type every character

  37. 1:09

    instead they leverage vs code's

  38. 1:11

    intellisense to autocomplete the code

  39. 1:13

    that they were thinking about writing

  40. 1:14

    when the right suggestion comes up hit

  41. 1:16

    tab or enter to complete it you might

  42. 1:18

    also right click on your code to find a

  43. 1:19

    variety of options to analyze and

  44. 1:21

    refactor it but almost anything you can

  45. 1:23

    do with the mouse you can do faster with

  46. 1:25

    the keyboard hit ctrl shift papa to

  47. 1:27

    bring up the command palette from here

  48. 1:29

    you can quickly access any vs code

  49. 1:31

    command or any file in your project

  50. 1:33

    let's use it to open up a terminal

  51. 1:34

    session which brings up the command line

  52. 1:36

    here at the bottom we can use it to run

  53. 1:38

    commands in this project like git init

  54. 1:40

    to enable source control or better yet

  55. 1:42

    we can click on the source control icon

  56. 1:44

    to run git commands with a visual

  57. 1:45

    interface vs code is minimal by design

  58. 1:48

    but as an open source javascript project

  59. 1:50

    it's easily extendable from the

  60. 1:52

    extensions panel you'll find a huge

  61. 1:53

    number of packages that provide

  62. 1:55

    specialized tooling for whatever

  63. 1:56

    framework or language you're working

  64. 1:58

    with most software projects work with

  65. 1:59

    the cloud in some capacity the remote