1 00:00:00,235 --> 00:00:01,068 (bright music) 2 00:00:01,068 --> 00:00:02,025 (logo chimes) 3 00:00:02,025 --> 00:00:02,859 (logo whooshing) 4 00:00:02,859 --> 00:00:05,340 (logo clicking) 5 00:00:05,340 --> 00:00:06,510 Frank: Hello, everyone. 6 00:00:06,510 --> 00:00:08,160 In this video, we're going to download, 7 00:00:08,160 --> 00:00:11,760 and install Visual Studio Code on Windows, 8 00:00:11,760 --> 00:00:16,290 and we're also going to set up the C++ extension for it. 9 00:00:16,290 --> 00:00:19,500 Now, before you execute anything in this video, 10 00:00:19,500 --> 00:00:24,300 please be sure that the MinGW 64 C++ Compiler 11 00:00:24,300 --> 00:00:27,390 has already been installed and configured on your system. 12 00:00:27,390 --> 00:00:29,430 That's very important that that's done already 13 00:00:29,430 --> 00:00:32,100 before we install Visual Studio Code. 14 00:00:32,100 --> 00:00:35,190 If you haven't done that, please go to section two, 15 00:00:35,190 --> 00:00:39,330 and refer to the instructions for installing MinGW 64, 16 00:00:39,330 --> 00:00:42,480 the C++ compiler on Windows. 17 00:00:42,480 --> 00:00:45,420 Okay, so moving forward, I'm assuming that that's done. 18 00:00:45,420 --> 00:00:48,060 What we want to do is open up your favorite browser, 19 00:00:48,060 --> 00:00:51,870 and head over to code.visualstudio.com. 20 00:00:51,870 --> 00:00:53,970 You can also search for Visual Studio Code 21 00:00:53,970 --> 00:00:56,040 in Google and it'll take you there. 22 00:00:56,040 --> 00:00:58,200 You're gonna get a page that looks similar to this, 23 00:00:58,200 --> 00:01:00,180 and you can see that there's this big blue button 24 00:01:00,180 --> 00:01:01,477 right here looking right at us saying, 25 00:01:01,477 --> 00:01:02,940 "Download for Windows." 26 00:01:02,940 --> 00:01:05,550 So it's already detected that I'm running Windows, 27 00:01:05,550 --> 00:01:06,900 and there's also a download button 28 00:01:06,900 --> 00:01:08,370 over here that gives you some more options 29 00:01:08,370 --> 00:01:11,280 in case you've got a 32 bit version of Windows. 30 00:01:11,280 --> 00:01:13,830 So I've got a regular 64 bit version of Windows, 31 00:01:13,830 --> 00:01:15,630 which is what most people have. 32 00:01:15,630 --> 00:01:16,980 And what I'm going to do is I'm just 33 00:01:16,980 --> 00:01:19,740 gonna click this button, Download for Windows, 34 00:01:19,740 --> 00:01:21,600 and that'll start my download. 35 00:01:21,600 --> 00:01:23,097 It'll take you to this Getting Started page. 36 00:01:23,097 --> 00:01:25,110 And you can see here that the file 37 00:01:25,110 --> 00:01:27,216 is going to be saved when I click Save File. 38 00:01:27,216 --> 00:01:28,260 (mouse button clicks) 39 00:01:28,260 --> 00:01:30,210 And once that installer is saved, 40 00:01:30,210 --> 00:01:32,040 that's what I want to execute. 41 00:01:32,040 --> 00:01:34,170 So I'm gonna come up here to my browser, 42 00:01:34,170 --> 00:01:36,330 and grab that download, which is right here, 43 00:01:36,330 --> 00:01:38,180 and I'm just gonna double-click on it 44 00:01:39,270 --> 00:01:41,070 to install it. 45 00:01:41,070 --> 00:01:43,410 Now, once the install begins, right here, 46 00:01:43,410 --> 00:01:44,760 I'm just gonna get rid of this browser. 47 00:01:44,760 --> 00:01:46,800 I don't need it anymore and I really don't want it 48 00:01:46,800 --> 00:01:48,180 to clutter up my screen. 49 00:01:48,180 --> 00:01:49,530 So here's the license agreement. 50 00:01:49,530 --> 00:01:50,363 You can look through that, 51 00:01:50,363 --> 00:01:54,180 and accept the agreement and then select Next, 52 00:01:54,180 --> 00:01:56,220 select the path you want to install it to. 53 00:01:56,220 --> 00:01:58,530 I'm just gonna use the defaults. 54 00:01:58,530 --> 00:01:59,793 I'll select Next. 55 00:02:00,870 --> 00:02:01,812 Next again. 56 00:02:01,812 --> 00:02:02,790 (mouse button clicks) 57 00:02:02,790 --> 00:02:04,980 And now it says, "Select Additional Tasks." 58 00:02:04,980 --> 00:02:06,660 The only thing that I set on here 59 00:02:06,660 --> 00:02:08,437 is that last checkbox right here, 60 00:02:08,437 --> 00:02:10,020 "Add to the path." 61 00:02:10,020 --> 00:02:12,030 If you want to create an icon on your desktop 62 00:02:12,030 --> 00:02:15,093 for Visual Studio Code, then select this first option. 63 00:02:15,990 --> 00:02:19,019 I'll select Next and then Install. 64 00:02:19,019 --> 00:02:20,760 (mouse button clicks) 65 00:02:20,760 --> 00:02:22,620 The install will progress pretty quickly, 66 00:02:22,620 --> 00:02:24,810 this is a fairly small application, 67 00:02:24,810 --> 00:02:26,860 and it's a very fast application as well. 68 00:02:28,260 --> 00:02:29,910 So once it's finished, 69 00:02:29,910 --> 00:02:32,730 what we'll do is we'll launch Visual Studio Code. 70 00:02:32,730 --> 00:02:34,080 That's what I'm going to do right now. 71 00:02:34,080 --> 00:02:36,750 You can see that that checkbox is checked, 72 00:02:36,750 --> 00:02:38,253 and I'm gonna select Finish, 73 00:02:39,210 --> 00:02:42,180 and that'll bring up Visual Studio Code. 74 00:02:42,180 --> 00:02:44,191 And I'm just gonna make this full screen. 75 00:02:44,191 --> 00:02:46,650 (mouse button clicks) 76 00:02:46,650 --> 00:02:49,170 We can just get rid of some of these messages. 77 00:02:49,170 --> 00:02:51,150 And this is the screen that you're gonna get the first time 78 00:02:51,150 --> 00:02:53,160 that you install Visual Studio Code. 79 00:02:53,160 --> 00:02:57,330 It's just a getting started screen and it's kind of small, 80 00:02:57,330 --> 00:02:59,070 so I'm just gonna enlarge this font, 81 00:02:59,070 --> 00:03:00,720 I'm just gonna hit Ctrl+, 82 00:03:00,720 --> 00:03:02,580 just to make it a little bit nicer on video, 83 00:03:02,580 --> 00:03:04,830 so you all can see it a little bit better. 84 00:03:04,830 --> 00:03:06,840 So this just gives you some information. 85 00:03:06,840 --> 00:03:08,400 You wanna pick a theme and I'll just pick 86 00:03:08,400 --> 00:03:09,723 this same dark theme. 87 00:03:10,770 --> 00:03:12,480 You can look at the different languages 88 00:03:12,480 --> 00:03:13,710 that it supports and so forth. 89 00:03:13,710 --> 00:03:15,480 So there's a lot of information in here. 90 00:03:15,480 --> 00:03:16,734 I'm going to close that. 91 00:03:16,734 --> 00:03:17,820 (mouse button clicks) 92 00:03:17,820 --> 00:03:19,200 And now, what I'm gonna do is I'm gonna go 93 00:03:19,200 --> 00:03:21,090 to this icon right over here at the left, 94 00:03:21,090 --> 00:03:23,520 down at the bottom, Extensions, 95 00:03:23,520 --> 00:03:24,501 and I'm gonna select that. 96 00:03:24,501 --> 00:03:26,070 (mouse button clicks) 97 00:03:26,070 --> 00:03:27,600 And what I want to do is I wanna install 98 00:03:27,600 --> 00:03:30,330 the C/C++ extension. 99 00:03:30,330 --> 00:03:32,100 And you can see it right here. 100 00:03:32,100 --> 00:03:34,680 Notice that I have zero extensions installed, 101 00:03:34,680 --> 00:03:37,320 because I just installed Visual Studio Code 102 00:03:37,320 --> 00:03:38,790 as a fresh install. 103 00:03:38,790 --> 00:03:39,623 So in this case, 104 00:03:39,623 --> 00:03:41,610 this is the extension that I want to install. 105 00:03:41,610 --> 00:03:43,260 It's here under Popular. 106 00:03:43,260 --> 00:03:45,270 If that does not show up under here, 107 00:03:45,270 --> 00:03:47,100 you can always search for the extension up here, 108 00:03:47,100 --> 00:03:50,820 just type C++ and you'll see it right there. 109 00:03:50,820 --> 00:03:52,740 So this is the one we wanna select. 110 00:03:52,740 --> 00:03:54,330 You'll know it's the one because you've got 111 00:03:54,330 --> 00:03:56,880 this circle here with some purple, white, and black, 112 00:03:56,880 --> 00:04:00,300 and it says C/C++, Microsoft. 113 00:04:00,300 --> 00:04:02,310 And it's got about 20 million downloads 114 00:04:02,310 --> 00:04:04,020 at the time of this video. 115 00:04:04,020 --> 00:04:06,129 And what we wanna do here is just select Install. 116 00:04:06,129 --> 00:04:07,110 (mouse button clicks) 117 00:04:07,110 --> 00:04:08,550 You'll see down here at the bottom, 118 00:04:08,550 --> 00:04:11,550 some messages of installation messages. 119 00:04:11,550 --> 00:04:12,480 At this point we're done, 120 00:04:12,480 --> 00:04:14,250 we've installed Visual Studio Code, 121 00:04:14,250 --> 00:04:16,740 and the C++ extension. 122 00:04:16,740 --> 00:04:18,959 So what I want to do now is just close this up, 123 00:04:18,959 --> 00:04:21,690 and go right over here to my explorer, 124 00:04:21,690 --> 00:04:22,920 and we are good to go now. 125 00:04:22,920 --> 00:04:23,790 So in the next video, 126 00:04:23,790 --> 00:04:26,960 what we'll do is we'll create a folder that will store some 127 00:04:26,960 --> 00:04:29,100 of our C++ projects. 128 00:04:29,100 --> 00:04:31,440 We'll create a small C++ program, 129 00:04:31,440 --> 00:04:33,180 and we'll run that and I'll show you how 130 00:04:33,180 --> 00:04:36,270 to configure Visual Studio Code to build, 131 00:04:36,270 --> 00:04:37,590 and run that project. 132 00:04:37,590 --> 00:04:39,290 So I'll see you in the next video.