1
00:00:00,480 --> 00:00:05,910
Hi, in this video, we are going to configure Visual Studio Code for working with Python because

2
00:00:05,910 --> 00:00:10,140
Visual Studio Code is an editor used for other programming languages as well.

3
00:00:10,410 --> 00:00:17,190
And not only Python but installing an extension designed for Python programming will allow us to

4
00:00:17,190 --> 00:00:19,790
make the best of Visual Studio Code.

5
00:00:19,860 --> 00:00:21,650
So that's what we are going to do in this video.

6
00:00:21,720 --> 00:00:24,810
We're going to install an extension for Python programming.

7
00:00:24,810 --> 00:00:30,480
And also I'm going to show you a couple of tips on how to get started with Visual Studio Code. Now Visual

8
00:00:30,480 --> 00:00:32,000
Studio Code and Python

9
00:00:32,010 --> 00:00:34,560
they work the same in all operating systems.

10
00:00:34,680 --> 00:00:40,230
So it doesn't matter what operating system I'm using, because whatever I do here in Visual Studio Code

11
00:00:40,230 --> 00:00:44,630
and Python, it will work the same in your operating system.

12
00:00:44,970 --> 00:00:45,860
Right, on the screen

13
00:00:45,870 --> 00:00:50,660
I have opened Visual Studio Code and this is a fresh installation. More or less

14
00:00:50,700 --> 00:00:54,420
this is what you should see when you open Visual Studio Code for the first time.

15
00:00:54,600 --> 00:01:01,290
Now, if you have closed this welcome window, if you close it and you want to bring it back, what

16
00:01:01,290 --> 00:01:08,520
you can do is you can use one of the most used options of Visual Studio Code, which is the command palette.

17
00:01:08,790 --> 00:01:12,780
So you can go to View, Command Palette, and you'll see this symbol here.

18
00:01:13,170 --> 00:01:19,440
Here now you can search for settings for options so you can find everything about Visual Studio Code

19
00:01:19,440 --> 00:01:19,820
in here.

20
00:01:19,980 --> 00:01:25,000
For example, if you type in 'welcome', you see this is highlighted.

21
00:01:25,590 --> 00:01:28,140
So if you press on that, it will show up

22
00:01:28,140 --> 00:01:30,240
the welcome page.

23
00:01:30,240 --> 00:01:31,440
Here you have a couple of tips.

24
00:01:31,440 --> 00:01:33,620
And I would like to stop in this link here.

25
00:01:33,810 --> 00:01:37,040
If you click that, it will take you

26
00:01:38,220 --> 00:01:44,700
to this page, so these are all the shortcuts, the keyboard shortcuts for Visual Studio Code.

27
00:01:44,700 --> 00:01:50,130
I would suggest to bookmark this in your browser and you can visit it whenever you want to look up something,

28
00:01:50,340 --> 00:01:54,540
but you can also access that cheat sheet.

29
00:01:55,290 --> 00:01:57,310
So let me close that welcome page.

30
00:01:57,480 --> 00:02:04,320
You can also access that again from View, Command Palette and type in 'shortcuts'.

31
00:02:05,300 --> 00:02:10,250
And you'll see the second result here in the list, 'Help: Keyboard Shortcuts Reference'.

32
00:02:10,250 --> 00:02:13,370
If you press that, it will take you again to the Web page.

33
00:02:15,310 --> 00:02:22,030
Right, if you want to change the theme again, you can go here and search for 'Theme' and you want to

34
00:02:22,030 --> 00:02:24,340
go to 'Preferences: Color Theme'.

35
00:02:27,300 --> 00:02:33,780
There you'll see several options, the one I would prefer would be default light, so I'm going to switch

36
00:02:33,780 --> 00:02:34,170
to that.

37
00:02:34,390 --> 00:02:38,040
You can also find the settings by going to File: Preferences

38
00:02:39,300 --> 00:02:45,930
and Settings. Note that if you are on Mac, you should go to the code menu, and then to Preferences and then

39
00:02:45,930 --> 00:02:51,270
to Settings instead of File: Preferences: Settings.
And then in Settings,

40
00:02:51,270 --> 00:02:57,320
if you wanted to change that theme, you'd go to Workbench: Appearance and scroll down here and you'll

41
00:02:57,350 --> 00:03:00,140
find Colour Theme, which is now set to light.

42
00:03:00,490 --> 00:03:06,780
Now, there's a lot of options here which you can explore by your own, but for me, I'd leave them

43
00:03:06,780 --> 00:03:08,640
as they are by default.

44
00:03:09,600 --> 00:03:09,880
Right.

45
00:03:10,260 --> 00:03:14,190
So those were some quick tips to get you started with Visual Studio Code.

46
00:03:14,220 --> 00:03:18,780
Now let's optimize Visual Studio Code for Python. To do that,

47
00:03:18,790 --> 00:03:21,320
you want to go to this button here.

48
00:03:23,100 --> 00:03:27,020
That is the Extensions tool.

49
00:03:27,540 --> 00:03:32,370
So here you can see what installed extensions you have for Visual Studio Code.

50
00:03:32,850 --> 00:03:36,050
It's zero in my case because it's a fresh installation.

51
00:03:36,060 --> 00:03:42,150
And then you also have Popular and then and then you also have Popular extensions in here.

52
00:03:43,670 --> 00:03:48,700
For example, Python is a very popular extension, but you can also search for extensions in here.

53
00:03:49,010 --> 00:03:49,760
So Python.

54
00:03:50,830 --> 00:03:56,620
Now, that will show you extensions in the marketplace, so we want to install the Python extension

55
00:03:56,950 --> 00:03:59,380
for that, click there and then click on Install.

56
00:04:00,400 --> 00:04:02,470
This should take a minute.

57
00:04:03,910 --> 00:04:10,720
Now, the Python extension, what it does is it provides some syntax highlighting for Python code,

58
00:04:10,720 --> 00:04:17,080
and it also allows you to easily execute Python programs and a few other features as well, which are

59
00:04:17,080 --> 00:04:17,950
good to have.

60
00:04:18,430 --> 00:04:21,510
So my extension was successfully installed.

61
00:04:22,570 --> 00:04:26,120
I can close that window with that extension installed.

62
00:04:26,140 --> 00:04:31,720
We are now ready to go ahead and write and run our first Python program, in Visual Studio Code.

63
00:04:31,840 --> 00:04:33,280
So let's do that in the next video.

64
00:04:33,340 --> 00:04:33,760
Thank you.

