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:00 Let's talk about discovering new features. We saw all these things we can do with this editor. And yet surely you've forgotten some of them.
0:09 You're like, I don't remember how to do this or that. Notice there's all sorts of squiggles on the screen. Like here we have a pep 8 violation.
0:16 We really should have two lines like right there, but we don't This should have a space between the equals there.
0:22 This should be up adjacent to the parentheses. This is over indented. Making these under indented,
0:29 which is not lined up. All these things are weird and what we need to do is reformat the code. I saw that Michael did some kind of thing that
0:38 had a hotkey to do it. But how does that work? There's a couple of ways we can do this on macOS. You can use the operating system level.
0:46 Like I can go up here and I can type a reformat and it will actually go and show me where that is in the menu and show me the hot key
0:54 And you can see you can see things like, well, what else could I do? I could run I could go and run the program and so on.
1:03 All right. But that only works on Mac. Let's use the PyCharm way. There's something similar to that built in.
1:09 So, if we go over here and hit 'cmd+shift+A' or I believe it's ctrl+shift+A on the other platforms. I can come over and type of reformat lets spell.
1:20 I notice right there it is. Reformat. Oh, that's right. It's 'cmd+alt+ L' or opt+cmd+L depending on how your keyboard reset,
1:28 let's do that. There we go. So much better. All those issues are gone. I want to run just command shift day. A new type of run. Guess what?
1:36 Let's run our program. Boom. There's all of our stuff downloaded. And again notice that we can see the hot keys,
1:43 for example, 'ctrl+r' our reformat 'opt+cmd+L' for my current key bindings.
1:50 The other thing to notice is this is just that search anywhere or search everywhere that
1:55 we had before. But instead of having it focused on all its focused on actions so we can hit a single key and just type what we want to have happen
2:06 rather than coming from hear clicking over there clicking there than typing it. Right But if you forget, you can always just click here and then here.
2:14 So don't hesitate to use this. It will be incredibly helpful.


Talk Python's Mastodon Michael Kennedy's Mastodon