Effective PyCharm Transcripts
Chapter: The Editor
Lecture: Discovering new features

Login or purchase this course to watch this video and the rest of the course contents.
0:01 Let's talk about discovering features for a second or discovering how to run a particular feature.
0:06 So I'm going to show you the operating system level way which only works on Mac, and then I am going to show you the way that's built into PyCharm
0:15 that just works on any version of PyCharm, so all the platforms. One of the things that's great about macOS,
0:22 I've done ton of Windows and Linux as well and I like them both, but this feature is really fantastic, so you come up here into the help and you say
0:32 I want to know how to— notice that this has little format error, this has a squiggly because of that space, we should, noticing these pep 8 violations,
0:43 these formatting violations here as well and what we should do is format that code. But maybe I forgot how to do it like I don't know,
0:50 somewhere maybe under code I don't know. So, that doesn't matter, you can just quickly come up here and type format,
0:56 reformat rather, that doesn't search sub strings, and it shows you hey right here is what you do
1:02 and actually CMD ALT L with my current key bindings is a way to do it. What if I want to know how to run, go over here and say run,
1:10 there's a couple of options, this will just like randomly run stuff, this will run the program like the one you just saw.
1:16 So, those are really cool ways inside a macOS, really for any reasonable application, I don't know how to save things— here is how I save things
1:26 I want to go into power saving mode etc, but PyCharm itself has a way to do that as well,
1:32 I can say CMD shift A or on the other platforms CTRL shift A I believe, you can come over here and you type things like reformat code
1:40 and it will tell you it's under code formatting, actually, if I just hit enter, boom, all those problems go away, beautiful.
1:47 What if I want to know how to run— I'll just run debug, there goes my code again; what if I want to take this and make it into a function,
1:56 I could say I want to refactor this and I could turn into a method and it will tell me how to do that.
2:07 We'll talk more about refactoring later, it's awesome but anything you want to do, CTRL shift A
2:11 or CMD shift A, and a little bit of typing is all you need.


Talk Python's Mastodon Michael Kennedy's Mastodon