1
00:00:02,590 --> 00:00:09,490
Hey, for today's programming tool, we're going to talk about ideas, code editors and text editors

2
00:00:09,490 --> 00:00:14,440
with a focus on ideas and exactly with a focus on the pie chart.

3
00:00:14,500 --> 00:00:15,580
I'd.

4
00:00:16,640 --> 00:00:23,180
So first of all, I want to explain you the difference between it is called editors and text editors.

5
00:00:23,540 --> 00:00:27,500
What you're looking at is a text editor program.

6
00:00:27,800 --> 00:00:31,130
This is Notepad on Windows.

7
00:00:32,060 --> 00:00:37,550
The sole purpose of this program is to allow you to view and edit text files.

8
00:00:37,550 --> 00:00:44,780
And by text files we also mean like that P files, because these are also text files, but with a dot

9
00:00:44,780 --> 00:00:46,220
P extension.

10
00:00:46,700 --> 00:00:50,090
So it is possible to program in a text editor.

11
00:00:50,120 --> 00:00:56,390
The problem is that you don't have syntax highlighting in a text editor.

12
00:00:57,820 --> 00:01:04,989
So as you can see, compared to poor, we don't see different colors for different coat elements.

13
00:01:04,989 --> 00:01:09,250
So in penchant, for example, we have the same color for variables.

14
00:01:10,140 --> 00:01:13,470
And then we have another color for functions and so on.

15
00:01:14,780 --> 00:01:18,160
That is not the case when you're using a text editor.

16
00:01:18,170 --> 00:01:23,570
So if you want to make your life harder than feel free to use a text editor.

17
00:01:24,170 --> 00:01:28,130
Otherwise, the next in line is called Editors.

18
00:01:28,490 --> 00:01:34,430
Code editors are things like Visual Studio codes, which I'll demonstrate you here.

19
00:01:34,460 --> 00:01:36,960
So this is Visual Studio Code.

20
00:01:36,980 --> 00:01:40,070
This is called a code editor.

21
00:01:41,280 --> 00:01:41,910
I'll explain.

22
00:01:41,910 --> 00:01:46,980
You know the difference between a text editor and the code editor and the difference between a code

23
00:01:46,980 --> 00:01:48,150
editor and an idea.

24
00:01:49,290 --> 00:01:53,200
So as you can see, the code is highlighted here.

25
00:01:53,220 --> 00:02:03,000
So Visual Studio Code, which is the code editor program here, is able to recognize Python code and

26
00:02:03,000 --> 00:02:11,100
it knows that it needs to use a particular color for functions such as input and print and so on, and

27
00:02:11,100 --> 00:02:19,200
another color for variables so that it makes it visibly easier for the programmer to read the code.

28
00:02:19,740 --> 00:02:25,800
Another example of a code editor is Atom, so you don't need to install these programs.

29
00:02:25,800 --> 00:02:33,230
I'm just mentioning them here so that you know the difference between these tools and power charm.

30
00:02:33,240 --> 00:02:34,800
So this is atom.

31
00:02:35,490 --> 00:02:39,570
It's another code editor similar to Visual Studio Code.

32
00:02:39,750 --> 00:02:42,030
It also gives you a syntax highlighting.

33
00:02:42,150 --> 00:02:46,380
And then we have ideas such as power charm.

34
00:02:46,950 --> 00:02:55,860
So an idea has all the features that text editors have and all the features that code editors have.

35
00:02:55,860 --> 00:03:00,990
Plus they have some tools, which makes programming easier.

36
00:03:01,080 --> 00:03:06,600
And these tools are particularly used when you get more advanced, a more advanced programmer, and

37
00:03:06,600 --> 00:03:10,410
you really, really have the need to use these tools.

38
00:03:10,410 --> 00:03:16,350
For example, Power Charm has a debugger which we will cover later.

39
00:03:16,350 --> 00:03:18,300
You'll know how to use the debugger.

40
00:03:18,300 --> 00:03:24,510
It makes it easier to fix box to find and fix bugs in your programs.

41
00:03:24,510 --> 00:03:30,210
So to find problems and you also have code completion in point charm.

42
00:03:30,210 --> 00:03:36,840
So when you're writing, when you're writing code, for example, this dot part charm will suggest to

43
00:03:36,840 --> 00:03:40,650
you what methods to you can use with lists.

44
00:03:40,650 --> 00:03:44,280
So that is something that text editors don't have.

45
00:03:44,880 --> 00:03:50,520
Code editors can also have one or another from these features.

46
00:03:50,970 --> 00:03:52,350
So for example.

47
00:03:53,520 --> 00:03:56,190
Visual Studio Code also has a debugger.

48
00:03:57,700 --> 00:04:08,320
So there isn't really a very defined border between an idea and a code editor, at least nowadays.

49
00:04:08,800 --> 00:04:16,329
So in Visual Studio Code, for example, although it is officially known as a code editor, it does

50
00:04:16,329 --> 00:04:19,510
have a lot of features that are these have.

51
00:04:20,459 --> 00:04:28,500
However, my recommendation is to use poor charm as the IDE, because unlike the other code editors

52
00:04:28,500 --> 00:04:32,940
and its power charm is exclusively built for Python.

53
00:04:34,040 --> 00:04:42,320
So basically you can refer to other programs as a Swiss knife where which are built for different languages,

54
00:04:42,320 --> 00:04:43,730
including Python.

55
00:04:43,730 --> 00:04:53,660
And Python is designed for around Python and it's really makes things easier for a programmer.

56
00:04:54,020 --> 00:04:57,750
So now I want to focus on explaining your charm.

57
00:04:58,250 --> 00:05:08,570
As you can see, Python is constructed of the editor area, which is this area here where we write the

58
00:05:08,570 --> 00:05:11,690
code and then we have the directory tree.

59
00:05:12,710 --> 00:05:18,350
Which is the place where we see the directories and the files for our project.

60
00:05:19,510 --> 00:05:25,000
And then we have the terminal, which can be switched on with this botany terminal.

61
00:05:26,020 --> 00:05:30,340
The terminal can be used to interact with the operating system.

62
00:05:30,340 --> 00:05:37,840
So with Windows or Mac, wherever you you're using and you can interact using commands, so you can

63
00:05:37,840 --> 00:05:43,090
copy files from one place to another, you can delete files, etc..

64
00:05:43,090 --> 00:05:46,120
So that is something we will not cover right now.

65
00:05:46,210 --> 00:05:51,100
You rarely need to do those things, but the terminal is just there.

66
00:05:51,100 --> 00:05:53,920
An integrated part of the i.t.

67
00:05:55,430 --> 00:05:57,380
We also have the Python council.

68
00:06:00,220 --> 00:06:03,310
Nvidia, which I explained already.

69
00:06:04,430 --> 00:06:07,970
So you can use this to interact with Python.

70
00:06:08,850 --> 00:06:10,350
Line by line.

71
00:06:13,240 --> 00:06:18,880
And then we have this debugger, which I'll cover later, as I explained, and then we have the run

72
00:06:18,880 --> 00:06:20,210
button to run the code.

73
00:06:20,230 --> 00:06:21,880
So those are the main.

74
00:06:22,820 --> 00:06:32,330
Features of the I.D. to change the settings of your picture, you can go to file and then settings on

75
00:06:32,330 --> 00:06:32,680
Mac.

76
00:06:32,690 --> 00:06:39,790
You can access settings with a shortcut cmd and a comma on windows.

77
00:06:39,800 --> 00:06:41,060
This is a shortcut.

78
00:06:41,630 --> 00:06:43,130
So if you press that.

79
00:06:45,000 --> 00:06:48,000
These are all the sections for the settings.

80
00:06:48,000 --> 00:06:54,810
So you have settings for the appearance and behavior, key map editor, etc. Let's look at appearance

81
00:06:54,810 --> 00:07:02,730
and behaviour and you, if you click under appearance here, you can change the font of all the elements

82
00:07:02,730 --> 00:07:04,920
but the code itself.

83
00:07:04,920 --> 00:07:10,680
So if I change this to for example, 12, I press enter.

84
00:07:13,870 --> 00:07:14,950
And then I press.

85
00:07:14,950 --> 00:07:15,430
Okay.

86
00:07:15,460 --> 00:07:16,120
Here.

87
00:07:18,280 --> 00:07:26,920
What we will get is these elements of the program of the ID will get smaller, but the code stays the

88
00:07:26,920 --> 00:07:27,310
same.

89
00:07:27,310 --> 00:07:30,730
So if you want to change the font of your code.

90
00:07:33,550 --> 00:07:40,540
Then you want to go to settings again and you won't go to appearance, but you want to go to Ed.

91
00:07:40,540 --> 00:07:49,510
So there you are accessing this Ed area here and you want to go to Font and then here you can change

92
00:07:49,510 --> 00:07:51,220
the font of your picture.

93
00:07:52,940 --> 00:08:01,790
So if I go to 14 and I press apply, then you'll see that the code here is going to get smaller.

94
00:08:04,310 --> 00:08:06,950
So choose whatever you feel comfortable with.

95
00:08:09,250 --> 00:08:18,010
But I would suggest not to get lost in a downward spiral with changing settings on your ID because I

96
00:08:18,010 --> 00:08:19,210
know how it works.

97
00:08:19,330 --> 00:08:22,330
You just get distracted and you forget to code.

98
00:08:22,360 --> 00:08:29,620
You get distracted with optimizing your ID, so please try to control that.

99
00:08:30,790 --> 00:08:33,429
I'll put this again to 20.

100
00:08:34,549 --> 00:08:41,270
And the other thing I want to show you is you can change the the theme of your ID under appearance and

101
00:08:41,270 --> 00:08:46,250
behavior appearance and the theme you have these four to choose from.

102
00:08:46,250 --> 00:08:49,490
So if you want a light theme, you can choose that.

103
00:08:51,730 --> 00:08:54,640
Dracula is the default theme.

104
00:08:56,530 --> 00:09:04,590
One important setting you might want to look at is the project setting.

105
00:09:04,600 --> 00:09:08,290
So projects, in my case it is Python projects.

106
00:09:08,290 --> 00:09:12,820
That is the name of my project of my directory Python projects.

107
00:09:12,850 --> 00:09:14,440
In your case it could be different.

108
00:09:14,440 --> 00:09:21,790
So if you click that you'll see this python interpreter and python structure or you can expand it and

109
00:09:21,790 --> 00:09:23,100
you'll see the same thing here.

110
00:09:23,110 --> 00:09:27,340
So Python interpreter if you go there and here now.

111
00:09:32,360 --> 00:09:38,990
This is the python interpreter that is executing your code.

112
00:09:38,990 --> 00:09:45,920
So when you run that triangle button, that triangle button uses the interpreter, which is selected

113
00:09:45,920 --> 00:09:49,730
in this setting here to run your code.

114
00:09:50,510 --> 00:09:53,180
So in my case, this is Python 3.10.

115
00:09:53,930 --> 00:09:56,150
This is what I have installed in this machine.

116
00:09:56,150 --> 00:10:03,350
So if you have multiple Python installations, you will see multiple interpreters here listed.

117
00:10:03,350 --> 00:10:10,070
So you want to select the one that is probably the latest version to add another interpreter.

118
00:10:11,810 --> 00:10:17,270
You can go to this settings gear icon and go to add.

119
00:10:18,580 --> 00:10:22,900
And then you want to go to new environment so you don't have to do this.

120
00:10:22,900 --> 00:10:24,640
Now I'm just mentioning it.

121
00:10:25,210 --> 00:10:26,770
Maybe you need it later.

122
00:10:26,920 --> 00:10:34,090
So new environments and then you select here the base interpreter, which is again the latest version.

123
00:10:34,450 --> 00:10:37,120
So that will create will select a new interpreter.

124
00:10:37,120 --> 00:10:39,550
It will not install Python in your machine.

125
00:10:39,550 --> 00:10:43,060
You just select that interpreter to be used for position.

126
00:10:43,750 --> 00:10:46,810
So I'm going to press cancel because I have an interpreter now.

127
00:10:48,590 --> 00:10:51,650
Now these are packages which will cover later.

128
00:10:52,600 --> 00:10:53,820
Python packages.

129
00:10:53,830 --> 00:10:56,830
So just leave it as it is now.

130
00:10:57,580 --> 00:11:01,420
Then we have some advanced settings in here which are not covered now.

131
00:11:02,050 --> 00:11:07,540
So it's about the debugger, several settings, several settings about that.

132
00:11:07,840 --> 00:11:10,070
You have languages and frameworks.

133
00:11:10,090 --> 00:11:12,280
This is also a bit advanced.

134
00:11:12,280 --> 00:11:17,170
You don't need to change this under tools you also have.

135
00:11:18,520 --> 00:11:23,180
Optional things like space, which is a feature of par charm.

136
00:11:23,200 --> 00:11:25,630
It gives you collaboration solutions.

137
00:11:25,630 --> 00:11:27,520
So I will not cover that either.

138
00:11:28,120 --> 00:11:37,720
So the most important settings to be aware of was appearance and behavior editor and project here.

139
00:11:39,860 --> 00:11:41,420
Under plug ins.

140
00:11:41,540 --> 00:11:51,110
You have power or plug ins which allow you to make posture more advanced so you can add basically new

141
00:11:51,110 --> 00:11:52,580
features to it.

142
00:11:52,610 --> 00:12:01,370
For example, one plug in, I'd like you I would like to suggest to use you can search for power and

143
00:12:01,370 --> 00:12:07,640
power mode to is the plug in I want you to consider installing so if I install this.

144
00:12:09,540 --> 00:12:10,350
Accept.

145
00:12:11,990 --> 00:12:12,920
And then I press.

146
00:12:12,920 --> 00:12:13,910
Okay.

147
00:12:19,230 --> 00:12:20,400
Wait a while.

148
00:12:21,640 --> 00:12:26,950
And to be able to activate the plugin, I want to close platform and open it again.

149
00:12:36,050 --> 00:12:43,490
And after I have resorted by charm, I can quote something and you'll see the sparks.

150
00:12:43,940 --> 00:12:47,300
So that's good to make coding more fun.

151
00:12:49,500 --> 00:12:50,400
More interactive.

152
00:12:50,400 --> 00:12:51,670
Perhaps some people like it.

153
00:12:51,690 --> 00:12:52,740
Some people hate it.

154
00:12:52,770 --> 00:12:54,690
If it didn't activate for you, try it.

155
00:12:54,690 --> 00:12:57,560
Tools and to power mode.

156
00:12:57,570 --> 00:13:05,040
So try that and try again to code to see those sparks so again to if you go to file settings.

157
00:13:06,420 --> 00:13:07,830
Under plug ins.

158
00:13:10,280 --> 00:13:11,450
Installed.

159
00:13:11,480 --> 00:13:17,330
Now under installed, you'll see that this power mode too is installed as a plugin.

160
00:13:18,190 --> 00:13:20,200
To change the settings of power modes.

161
00:13:20,200 --> 00:13:26,020
You can go to appearance and behavior and then click on power mode to than you can.

162
00:13:26,020 --> 00:13:31,660
For example, you can disable the flames and just have the sparks again.

163
00:13:31,670 --> 00:13:35,380
It's just not to get lost with these optimizations.

164
00:13:35,380 --> 00:13:43,150
So just allocate a maximum of 5 minutes changing the settings and then go on and start coding again

165
00:13:43,330 --> 00:13:44,140
so you can press.

166
00:13:44,140 --> 00:13:46,630
Okay to apply those changes.

167
00:13:48,870 --> 00:13:55,020
Another cool feature of chart I wanted to show you, which is very handy, is if you have two files,

168
00:13:55,020 --> 00:14:02,270
for example, another file, let's say this is main one and you have main and main one.

169
00:14:02,280 --> 00:14:07,410
And if main for example, is a bit different from main one.

170
00:14:07,410 --> 00:14:11,060
So you have coded in different files and you have made some changes.

171
00:14:11,070 --> 00:14:19,590
You can compare the two files, you can select both of them with shift and then right click and go to

172
00:14:20,160 --> 00:14:22,710
compare files, which is at the end here.

173
00:14:24,280 --> 00:14:27,460
That should show this window view.

174
00:14:27,850 --> 00:14:30,770
So here on the left, we have main pie.

175
00:14:30,820 --> 00:14:32,650
You can see the file name in here.

176
00:14:32,650 --> 00:14:35,380
And here on the right, we have main one dot pie.

177
00:14:35,620 --> 00:14:42,540
Highlighted in green is the new line that this file has.

178
00:14:42,550 --> 00:14:45,580
So you can easily see the differences between the two.

179
00:14:45,610 --> 00:14:48,670
You can scroll up and down to see all the differences.

180
00:14:48,670 --> 00:14:50,850
In this case we only have this difference.

181
00:14:50,860 --> 00:14:55,000
This line is extra here in this main one that P file.

182
00:14:55,600 --> 00:14:58,570
You can close that view by pressing that.

183
00:15:00,320 --> 00:15:02,690
And you go back to Maine that point.

184
00:15:05,060 --> 00:15:07,130
And so that was an introduction.

185
00:15:07,130 --> 00:15:12,890
All the differences between text editors called editors and ideas, and also an introduction to Power

186
00:15:12,890 --> 00:15:13,520
Charm.

187
00:15:14,000 --> 00:15:19,580
We looked at some settings, so you are now probably more familiar with Power Charm.

188
00:15:19,880 --> 00:15:22,430
Thanks a lot for following and I'll see you later.

