Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
1
00:00:01,790 --> 00:00:05,680
Now before we can start writing a single line of code,
2
00:00:05,680 --> 00:00:08,600
we first need to install a special tool
3
00:00:08,600 --> 00:00:10,840
called a code editor.
4
00:00:10,840 --> 00:00:15,110
And a code editor is essentially a special software that
5
00:00:15,110 --> 00:00:19,510
allows us to write programming code like HTML and CSS
6
00:00:19,510 --> 00:00:21,860
in a very easy way.
7
00:00:21,860 --> 00:00:25,720
And since this course is probably your first contact with
8
00:00:25,720 --> 00:00:28,680
any coding and this video I will guide you
9
00:00:28,680 --> 00:00:32,820
through installing the very best code editor in the world.
10
00:00:32,820 --> 00:00:36,460
And I will then also show you how to set it up a little bit
11
00:00:36,460 --> 00:00:40,943
with some special settings, color themes and extensions.
12
00:00:42,600 --> 00:00:45,800
And the code editor that we're going to use in this course
13
00:00:45,800 --> 00:00:49,410
is called visual studio code from Microsoft.
14
00:00:49,410 --> 00:00:53,110
And has I just said earlier, this is in my opinion,
15
00:00:53,110 --> 00:00:55,880
and in the opinion of many other developers,
16
00:00:55,880 --> 00:01:00,080
the very best code editor for web development in the world.
17
00:01:00,080 --> 00:01:03,290
So actually every developer that I know right now
18
00:01:03,290 --> 00:01:05,010
uses this code editor.
19
00:01:05,010 --> 00:01:09,350
And so you also can't go wrong by using vs code.
20
00:01:09,350 --> 00:01:10,610
So to download it,
21
00:01:10,610 --> 00:01:14,801
just go to code.visualstudio.com or
22
00:01:14,801 --> 00:01:18,550
to make it even easier, you can just Google vs code.
23
00:01:18,550 --> 00:01:21,890
And it should be this very first result.
24
00:01:21,890 --> 00:01:25,230
And of course, vs code is available for free
25
00:01:25,230 --> 00:01:27,810
and for all platforms out there.
26
00:01:27,810 --> 00:01:31,020
So Mac OS, windows, and Linux.
27
00:01:31,020 --> 00:01:34,430
And so please just go ahead right now and download the
28
00:01:34,430 --> 00:01:37,400
installer for your own system.
29
00:01:37,400 --> 00:01:40,490
Then install the program on your computer,
30
00:01:40,490 --> 00:01:42,430
just like any other program.
31
00:01:42,430 --> 00:01:44,940
And then once you're done doing that,
32
00:01:44,940 --> 00:01:47,620
just come back to this video so that we can set up
33
00:01:47,620 --> 00:01:48,993
your editor a little bit.
34
00:01:49,850 --> 00:01:51,510
Okay.
35
00:01:51,510 --> 00:01:55,900
So I hope that you managed to install visual studio code
36
00:01:55,900 --> 00:01:59,980
or vs code as we also call it on your computer.
37
00:01:59,980 --> 00:02:02,910
And once you open up the code editor,
38
00:02:02,910 --> 00:02:06,110
it should look something like this. And as I said earlier,
39
00:02:06,110 --> 00:02:08,919
we will now set up a vs code a little bit
40
00:02:08,919 --> 00:02:11,910
to make it easier for you to follow this course.
41
00:02:11,910 --> 00:02:15,280
And we will start by installing an extension.
42
00:02:15,280 --> 00:02:19,550
And an extension for vs code is basically just a small piece
43
00:02:19,550 --> 00:02:23,100
of functionality that we can download and which makes the
44
00:02:23,100 --> 00:02:24,730
editor a little bit better.
45
00:02:24,730 --> 00:02:28,770
So we can basically customize the editor to our needs.
46
00:02:28,770 --> 00:02:31,430
So you can think of it a little bit like Google Chrome
47
00:02:31,430 --> 00:02:33,390
extensions, for example.
48
00:02:33,390 --> 00:02:35,500
So it's the same concept.
49
00:02:35,500 --> 00:02:37,830
And the one that we're going to install for now
50
00:02:37,830 --> 00:02:42,830
is called prettier. So just search for prettier.
51
00:02:43,100 --> 00:02:46,620
And then it's probably going to be this first result here
52
00:02:46,620 --> 00:02:50,110
because prettier is an extremely popular extension.
53
00:02:50,110 --> 00:02:54,870
You see it has over 12 million downloads right now.
54
00:02:54,870 --> 00:02:58,010
And so just go ahead and click install here
55
00:02:58,010 --> 00:02:59,670
and then enable it.
56
00:02:59,670 --> 00:03:02,640
And probably you will then have to also reload
57
00:03:02,640 --> 00:03:04,750
this vs code window.
58
00:03:04,750 --> 00:03:08,370
Now what this extension does is to automatically format your
59
00:03:08,370 --> 00:03:10,670
code whenever you save it.
60
00:03:10,670 --> 00:03:13,940
And this is going to be very important so that your code
61
00:03:13,940 --> 00:03:17,220
always looks exactly the same way as the code that
62
00:03:17,220 --> 00:03:19,010
I am typing in the video,
63
00:03:19,010 --> 00:03:22,890
because that way it will be way easier for you to find any
64
00:03:22,890 --> 00:03:26,930
errors or any mistakes that you have in your own code.
65
00:03:26,930 --> 00:03:30,740
So it will be easier for you to find and to fix mistakes
66
00:03:30,740 --> 00:03:32,490
as you're going through the videos.
67
00:03:33,360 --> 00:03:34,810
Okay. And for now,
68
00:03:34,810 --> 00:03:37,660
this is actually going to be the only extension that
69
00:03:37,660 --> 00:03:41,080
we're going to install. We will just install some more
70
00:03:41,080 --> 00:03:43,290
a bit later in the next section.
71
00:03:43,290 --> 00:03:47,080
So now let's come down here to this settings icon,
72
00:03:47,080 --> 00:03:51,490
then choose settings from here so that we can now tweak a
73
00:03:51,490 --> 00:03:53,120
couple of settings.
74
00:03:53,120 --> 00:03:56,670
And let's actually start with two settings that are related
75
00:03:56,670 --> 00:04:00,220
to the prettier extension that we just installed.
76
00:04:00,220 --> 00:04:02,870
So just come here to the search bar.
77
00:04:02,870 --> 00:04:06,790
So searching for the setting name is actually the easiest
78
00:04:06,790 --> 00:04:08,790
way of finding them.
79
00:04:08,790 --> 00:04:13,790
So just type here, default formatter.
80
00:04:14,010 --> 00:04:18,209
And so here, we actually need to set it to prettier.
81
00:04:18,209 --> 00:04:21,240
So I already have it set of course,
82
00:04:21,240 --> 00:04:24,320
but you will have to go through this list
83
00:04:24,320 --> 00:04:27,293
and find prettier somewhere here.
84
00:04:29,230 --> 00:04:33,030
So it is right here.
85
00:04:33,030 --> 00:04:35,790
So, choose prettier code formatter,
86
00:04:35,790 --> 00:04:40,233
and it needs to be this esbnp.prettier-vs coat.
87
00:04:41,610 --> 00:04:42,443
Okay.
88
00:04:42,443 --> 00:04:46,260
And so now vs code knows that it should use that prettier
89
00:04:46,260 --> 00:04:50,460
extension that we just installed to format your code.
90
00:04:50,460 --> 00:04:54,040
Now, when should it actually format your code?
91
00:04:54,040 --> 00:04:57,700
Well, we need to set another setting for that,
92
00:04:57,700 --> 00:05:02,700
which is the format on safe setting.
93
00:05:03,210 --> 00:05:05,240
So it's this one here, and here
94
00:05:05,240 --> 00:05:08,780
you need to check this checkbox so that prettier will
95
00:05:08,780 --> 00:05:11,530
automatically format your file each time
96
00:05:11,530 --> 00:05:12,393
that you save it.
97
00:05:13,950 --> 00:05:14,810
Okay.
98
00:05:14,810 --> 00:05:18,803
Another one that is very important is the auto safe setting.
99
00:05:19,700 --> 00:05:22,873
So auto safe, we need to set it to onFocusChange.
100
00:05:23,820 --> 00:05:27,730
And what this will do is to automatically save your files as
101
00:05:27,730 --> 00:05:32,260
you go to another tab or as you leave the window completely.
102
00:05:32,260 --> 00:05:34,870
And so this is very important so that you never lose your
103
00:05:34,870 --> 00:05:38,410
edits and so that you don't have to manually save your files
104
00:05:38,410 --> 00:05:39,243
all the time.
105
00:05:40,160 --> 00:05:43,653
So set this one to onFocusChange again.
106
00:05:45,910 --> 00:05:48,950
And another one that I like to use,
107
00:05:48,950 --> 00:05:52,180
and I'm not sure if this is actually the default already
108
00:05:52,180 --> 00:05:55,090
is to set the tab size to two.
109
00:05:55,090 --> 00:05:57,640
And so in this case, this is just again,
110
00:05:57,640 --> 00:06:01,860
so that your code looks exactly the same way as my code.
111
00:06:01,860 --> 00:06:05,130
So the tab size is basically just the indentation of the
112
00:06:05,130 --> 00:06:09,210
code and you will know what that means a little bit later,
113
00:06:09,210 --> 00:06:12,990
once we start writing HTML, okay.
114
00:06:12,990 --> 00:06:17,280
And these are the four settings that we need to set.
115
00:06:17,280 --> 00:06:20,050
So I think we're good now with the settings.
116
00:06:20,050 --> 00:06:24,060
And now finally, let's talk about these colors.
117
00:06:24,060 --> 00:06:28,230
So basically we can customize vs code with a color theme,
118
00:06:28,230 --> 00:06:32,080
which will then change the colors of the code editor itself
119
00:06:32,080 --> 00:06:34,580
and also of the code.
120
00:06:34,580 --> 00:06:37,760
So it will basically highlight different parts of the code
121
00:06:37,760 --> 00:06:39,950
with different colors.
122
00:06:39,950 --> 00:06:43,360
Now, this is just a thing of personal preference.
123
00:06:43,360 --> 00:06:46,010
So you can just use the theme that already comes
124
00:06:46,010 --> 00:06:49,500
automatically by default with vs code.
125
00:06:49,500 --> 00:06:53,710
But I choose to install a special theme that I believe makes
126
00:06:53,710 --> 00:06:56,140
it very easy to read the code.
127
00:06:56,140 --> 00:06:59,603
And so for you to follow this course in an easier way.
128
00:07:00,446 --> 00:07:04,940
So a color theme is basically just another extension
129
00:07:04,940 --> 00:07:06,910
that we need to install.
130
00:07:06,910 --> 00:07:10,000
And this one is called One Monokai.
131
00:07:13,430 --> 00:07:17,860
So this very first one here, and as you can see down here,
132
00:07:17,860 --> 00:07:21,370
it will give our code these kinds of colors,
133
00:07:21,370 --> 00:07:24,220
and also the vs code editor itself will
134
00:07:24,220 --> 00:07:28,270
have this blue color that you can see already here
135
00:07:28,270 --> 00:07:29,910
in this window.
136
00:07:29,910 --> 00:07:33,360
So if you want to use this color theme as well to make your
137
00:07:33,360 --> 00:07:36,220
editor look exactly the same as mine,
138
00:07:36,220 --> 00:07:38,580
then just go ahead and once again,
139
00:07:38,580 --> 00:07:43,290
download this extension and then set the color theme using
140
00:07:43,290 --> 00:07:44,900
this option here.
141
00:07:44,900 --> 00:07:48,040
And you can also experiment with some other themes,
142
00:07:48,040 --> 00:07:51,920
of course, down here, again, in the settings icon.
143
00:07:51,920 --> 00:07:54,303
And then here in color theme,
144
00:07:54,303 --> 00:07:57,620
you can choose one of these light themes or one of these
145
00:07:57,620 --> 00:07:59,170
dark themes.
146
00:07:59,170 --> 00:08:02,610
So vs code already comes with a bunch of themes
147
00:08:02,610 --> 00:08:04,260
pre-installed basically.
148
00:08:04,260 --> 00:08:07,200
And so you can try them out as well.
149
00:08:07,200 --> 00:08:09,040
Or if you have another preference,
150
00:08:09,040 --> 00:08:12,343
you can also install any other theme that you would like.
151
00:08:14,380 --> 00:08:17,550
Finally, there's just one more small thing,
152
00:08:17,550 --> 00:08:20,453
which is these file I can theme.
153
00:08:21,440 --> 00:08:22,930
So this doesn't really matter,
154
00:08:22,930 --> 00:08:26,810
but I set mine to this option here. So Seti.
155
00:08:26,810 --> 00:08:27,793
And so again,
156
00:08:28,629 --> 00:08:30,900
if you want your editor to look just like mine,
157
00:08:30,900 --> 00:08:33,373
you can also go ahead and choose this option.
158
00:08:34,580 --> 00:08:39,580
Okay, then that we are done setting up vs code for now.
159
00:08:40,130 --> 00:08:42,520
So now you're actually ready to write
160
00:08:42,520 --> 00:08:44,730
your very first line of code.
161
00:08:44,730 --> 00:08:47,130
And so that's exactly what we're going to do
162
00:08:47,130 --> 00:08:48,670
in the next video.
163
00:08:48,670 --> 00:08:49,693
See you there soon.
12573
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.