Modern Python Projects Transcripts
Chapter: Your code editor
Lecture: Choosing a code editor

Login or purchase this course to watch this video and the rest of the course contents.
0:00 Let's start this course by discussing one of the essential tools that every programmer uses.
0:05 A code editor. No matter what kind of tools and work flows you use when
0:10 building a new Python application, you will still spend most of your time inside the
0:14 code editor. It's a very sensitive topic for many programmers.
0:18 There's even this famous comic stripe by XKCD,
0:21 where different programmers argue. What's a code editor for real
0:25 Programmers? Don't take it too seriously and use whatever code editor you find comfortable.
0:30 I, for example, really like VSCode.
0:33 Since this a python course, you might be wondering,
0:36 Why am I not using PyCharm,
0:37 as many Python programmers do? Well,
0:40 there's absolutely nothing wrong with PyCharm.
0:43 It's an excellent code editor for both beginners and Advanced Python programmers.
0:47 I have not used it personally,
0:49 but I watched some tutorials where the instructors were using PyCharm,
0:53 and from what I saw, it works great out of the books.
0:56 It has a much better refactoring capabilities in VSCode,
0:59 and you really can't go wrong by sticking with it.
1:02 There is a free community version,
1:04 and there is a paid version that offers more features,
1:07 but the free version is perfectly capable to get you started.
1:11 But the chances are that maybe Python is not your only programming language,
1:15 and you need a more versatile code editor.
1:17 Maybe you want to be able to customize more things.
1:19 Or maybe you would prefer your code.
1:21 Editor To be Open Source. There are many different code editors out there.
1:25 Stack Overflow creates a survey every year.
1:27 Let's take a look. In 2017,
1:29 the most popular Code editor was visual studio.
1:32 Then we had note pad plus plus, sublime text, vim and then visual studio code.
1:36 As you can see, this survey is not limited to Pyton programmers.
1:40 There is PHP Storm or Android studio,
1:42 so the results are from programmers working in any kind of programming language.
1:47 So that was 2017. In 2018,
1:50 you can see that there are three code editors that are equally popular visual studio code
1:55 visual studio and note pad plus plus,
1:59 let's check the next year. In 2019,
2:02 visual studio code really dominated this survey.
2:05 Over 50% off responders are using it.
2:08 And what about 2020 Well we don't know,
2:11 because in the survey from 2020 there was no question about your favorite code editor,
2:16 So I can't really tell if VSCode still that popular.
2:19 But I think it still is.
2:21 There was no new code editor that would get so popular.
2:24 VSCode. And if you really want to customize every possible little detail of code
2:31 editor or you want a code editor that works in your terminal,
2:34 then there are editors like Vim or Emacs.
2:37 Those are text editors, not IDE’s,
2:39 although some people joke that Emacs is a whole operating system.
2:43 But when you install some plugins,
2:45 you can turn them into a pretty capable code.
2:47 Editors. The learning curve for both of them is very steep.
2:50 They don't take you by the hand and show you how to use it.
2:53 You don't configure them by clicking things in the interface,
2:56 but you modify a configuration file,
2:58 so you need to first check the documentation of what's possible.
3:02 But thanks to that they offer an incredible level of customization.
3:05 You can change basically any part of it.
3:07 For example, here is a Vim configuration that I use,
3:11 and I swear I try to keep it to a minimum,
3:13 but it's still almost 250 lines long.
3:16 I usually use Vim for very quick edits in a terminal because it's very fast to
3:20 use it that way. I don't have to contact switch to a separate up.
3:24 I just run my edits in the terminal and then continue with what I was doing
3:27 before from all those code editors that I mentioned.
3:30 VSCode is my favorite.
3:31 I've been using it for a few years, and it works pretty well for Python and
3:35 for any other programming language today I am.
3:37 Using, what I really like about VSCode is that it strikes the right balance
3:41 between productivity and Beginner friendliness.
3:44 When you install it, you can start using it right away.
3:47 And as you go, it will try to suggest some plugins and settings that
3:51 you might want to use. Open your first Python file and it will suggest,
3:55 Python extension. When you continue editing that file,
3:58 it will suggest to install a Linter and a formatter.
4:01 On top of that, there is a very vibrant community around it.
4:04 Every month, a new version is released, and it usually brings a ton of new
4:08 features. So, in this chapter,
4:11 I will show you how to install and set up VSCode for programming in
4:15 Python. I will start from a completely new installation of VSCode and then
4:19 set up everything from scratch. I will show you some of the most popular features
4:23 but also some less popular ones that maybe you never heard about.
4:27 If you don't use VSCode and you are not planning to use it,
4:31 feel free to skip this chapter and jump to the next one.