Fireship · @fireship
25 VS Code Productivity Tips and Speed Hacks
Uploaded June 14, 2021 · Length 11:35
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.
- 0:00
visual studio code is like a knife it's
- 0:02
only as good as the hands that wield it
- 0:04
but unfortunately it has more knobs than
- 0:06
a fighter jet and requires the steady
- 0:07
hand of a surgeon to the untrained eye
- 0:09
vs code is just a simple text editor
- 0:11
like microsoft word with code
- 0:13
highlighting
- 0:13
but in reality it contains a ton of
- 0:15
productivity boosting features that
- 0:17
you're probably not using yet
- 0:18
in today's video we'll compare amateur
- 0:20
vs code techniques to the ones used by
- 0:22
professionals allowing you to write and
- 0:24
analyze your code faster
- 0:25
because the most valuable thing you own
- 0:26
in this world is your time if you're new
- 0:28
here like and subscribe then leave your
- 0:30
best vs code pro tip in the comments
- 0:32
i'll choose one of them to win this free
- 0:33
t-shirt next week and now let's jump
- 0:35
right into things by installing vs code
- 0:37
once installed you'll want to open up a
- 0:39
directory with some files in it maybe
- 0:40
you just generated a new astro project
- 0:42
from the command line
- 0:43
then to open it in your editor you pull
- 0:45
up the file explorer and click
- 0:47
open with vs code that works but it
- 0:49
would have been much quicker had you
- 0:50
done it from the command line if you're
- 0:51
in the terminal and want to open a
- 0:53
directory or edit a file you can do that
- 0:55
quickly with the vs code cli
- 0:57
using the code command but keep in mind
- 0:59
if you're on mac or linux you need to
- 1:01
first add the binary to your path
- 1:03
now that we have the editor opened it's
- 1:05
tempting to go around two different
- 1:06
windows with the mouse and click on
- 1:08
buttons to run commands just like we
- 1:09
would with any other software
- 1:11
but here's a little productivity secret
- 1:13
the less you rely on the mouse the
- 1:15
better
- 1:15
vs code allows you to use the mouse for
- 1:17
everything making the tool approachable
- 1:19
but that's really the most efficient way
- 1:20
to get things done you don't have to go
- 1:22
crazy and learn something like vim or
- 1:23
emax
- 1:24
but it's important to understand that
- 1:25
anything you do with your mouse can
- 1:27
likely be done quicker with the keyboard
- 1:29
virtually every command you see in the
- 1:30
vs code window can be done with a
- 1:32
keyboard shortcut you don't need to
- 1:33
memorize them all but knowing about 10
- 1:35
to 20 will literally change your life
- 1:37
letting go of the mouse may not feel
- 1:38
natural at first but mastering the
- 1:40
keyboard is a lot like learning to play
- 1:42
an instrument
- 1:42
it takes a lot of practice but
- 1:43
eventually it becomes second nature the
- 1:45
first shortcut you'll want to memorize
- 1:47
is control papa
- 1:48
which brings up the command palette the
- 1:50
beauty of the command palette is that it
- 1:51
gives you all the power of vs code from
- 1:53
the keyboard without having to memorize
- 1:55
a bunch of key bindings
- 1:56
by default it will give you a list of
- 1:58
recently opened files
- 1:59
in addition you can start typing a file


