1 00:00:05,760 --> 00:00:13,200 So in this lecture, I just want to make sure that everybody understands how to use Visual Studio code 2 00:00:13,380 --> 00:00:14,940 for this course. 3 00:00:15,150 --> 00:00:24,720 So the first thing that we want to look at is making sure that we have the same extensions installed. 4 00:00:25,410 --> 00:00:32,550 So if you click on these boxes over here and if you highlight over it, it'll tell you that it's extensions 5 00:00:32,640 --> 00:00:42,990 or you can hit control, shift X at the same time and it'll bring up all your currently installed extensions. 6 00:00:42,990 --> 00:00:45,720 And then you can also search for extensions. 7 00:00:46,230 --> 00:00:48,600 So we're going to search for rust. 8 00:00:48,720 --> 00:00:55,710 And this is the official rust extension for rust. 9 00:00:56,430 --> 00:00:58,380 So this is the one that I went with. 10 00:00:58,380 --> 00:01:04,230 But you can see that there's plenty more over here that you can install if you want to check out different 11 00:01:04,230 --> 00:01:07,290 ones and find the one that is right for you. 12 00:01:07,920 --> 00:01:10,890 But I am using this one just called Rust. 13 00:01:10,980 --> 00:01:17,130 It's version 0.7.8 and that is the latest one. 14 00:01:17,760 --> 00:01:25,290 And then once you install it, you can just restart Visual Studio code just to make sure that the install 15 00:01:25,320 --> 00:01:26,940 has taken effect. 16 00:01:26,940 --> 00:01:32,580 And once you've done that, you do have your rust extension completely installed. 17 00:01:34,160 --> 00:01:39,230 So I provided all the source code in a zip file. 18 00:01:39,500 --> 00:01:47,090 If you want to open it, all you have to do is unzip it and then you can go to file open folder. 19 00:01:47,450 --> 00:01:49,280 I have mine on my desktop. 20 00:01:50,970 --> 00:01:59,070 And then you just select folder and inside of here you will see all the source code for this lecture 21 00:02:00,540 --> 00:02:08,280 in this folder, and it's important to make sure that you change directory into it. 22 00:02:08,610 --> 00:02:20,580 So for me, it's just CD and then rest the complete guide and then just change direction and to change 23 00:02:20,580 --> 00:02:27,390 direction, change directory and to any of the folders depending on what lecture you are on. 24 00:02:27,960 --> 00:02:30,570 And then it'll run as normal. 25 00:02:31,290 --> 00:02:37,500 And of course, the one that I picked happens to be of a 26 00:02:40,530 --> 00:02:42,540 section to cargo run. 27 00:02:43,350 --> 00:02:44,390 Did not find. 28 00:02:44,390 --> 00:02:46,130 Oh, what do we have in here? 29 00:02:46,550 --> 00:02:47,420 So we'll go to. 30 00:02:47,420 --> 00:02:48,380 Hello. 31 00:02:48,740 --> 00:02:51,740 And now we have our cargo file. 32 00:02:51,740 --> 00:02:53,660 So now we can do cargo run. 33 00:02:53,660 --> 00:03:00,200 So as you can see, as long as you change into the directory inside of the folders to the location where 34 00:03:00,200 --> 00:03:08,840 your cargo file is, then you can start running cargo run and the project will compile successfully 35 00:03:08,840 --> 00:03:09,410 for you. 36 00:03:10,100 --> 00:03:18,620 So if you want to change folders because maybe you have created your own folder for writing the source 37 00:03:18,620 --> 00:03:26,180 code from scratch, well you can close the folder by just going in here and selecting close folder and 38 00:03:26,180 --> 00:03:28,280 then you can open up your. 39 00:03:30,060 --> 00:03:35,670 Your own personal folder, which I created, one called Rust Project. 40 00:03:35,670 --> 00:03:39,240 So we'll select it and as you can see. 41 00:03:41,090 --> 00:03:42,920 My folder is currently empty. 42 00:03:43,730 --> 00:03:51,200 So up here, in my version of Visual Studio code, which is the latest version, I update it every time 43 00:03:51,200 --> 00:03:52,260 that there's an update. 44 00:03:52,280 --> 00:03:59,720 You can toggle this panel down below and it'll bring up the terminal for you or you can hit control 45 00:03:59,720 --> 00:04:02,120 J to toggle it on and off. 46 00:04:03,340 --> 00:04:08,800 So in here we want to create a new project and we'll just call it Hello. 47 00:04:09,100 --> 00:04:14,350 And now you see that cargo new created a new folder for us called Hello. 48 00:04:14,770 --> 00:04:22,180 And we want to see the change directory into that folder and you'll see we have our cargo dot Tamil 49 00:04:22,210 --> 00:04:26,590 and our source folder folder already created for us. 50 00:04:27,280 --> 00:04:36,280 And now if you execute cargo run again, you see we have Hello World Executed, which is the intended 51 00:04:36,880 --> 00:04:42,370 output for our templated new cargo package. 52 00:04:43,030 --> 00:04:46,540 So hopefully this clears up anything. 53 00:04:47,170 --> 00:04:50,410 And if you have any more questions, please ask them in the Q&A section. 54 00:04:50,710 --> 00:04:58,540 But this is all you need to know on how to use the Visual Studio code ID for this course. 55 00:04:58,540 --> 00:05:00,370 So enjoy the course. 56 00:05:00,370 --> 00:05:04,780 And if you have any questions at any point, please ask them in the Q&A section.