Hidden features of PyCharm

37,505

Solution 1

As the lead developer of PyCharm, I can tell you that we don't usually hide features in random places, and there are a few reliable ways to discover most of them.

  • Try Ctrl-clicking on everything (methods, functions, template tag names and parameters, etc.)
  • If Ctrl-clicking works, usually so does completion (Ctrl-Space), rename (Shift-F6) and Find Usages (Alt-F7)
  • Look through the menus and try out the actions that seem interesting
  • Look at Settings | Inspections to configure the warnings which can be highlighted by PyCharm, and note that many of the inspections have quickfixes to correct the problems automatically
  • Read the blog and try out the features highlighted there.

Solution 2

I have recently discovered an option (I think it's off by default):

Surround selection on typing quote or brace

Basically if you can quickly make a string from anything, just press Ctrl-W to select and then type quote. Awesome :)

PS: To enable this use settings search function, search for: surround

Solution 3

I like ctrl-w, the select block function. I've never ran across this before I think it's great to be able to select a function/if block by just pressing ctrl-w a couple of times.

Solution 4

This isn't PyCharm specific, I actually discovered it in IntelliJ but I though the PyCharm users should benefit too...

Try Alt+Click (Ctrl+Alt+Click if using Gnome default keymap) and drag to select text. It will select bounded blocks instead of complete lines using word wrap. These selected blocks can be used to type repetitive text or delete many parts of a line at once. Try it, you will find uses for it more often than you think!

Solution 5

I don't know if this is a hidden feature really but when you know about it makes testing so much easier.

If you run your tests through PyCharm you can click on the names and lines of the backtrace to take you to the exact line in your python code. Makes testing so much easier.

Share:
37,505
Janusz Skonieczny
Author by

Janusz Skonieczny

Ostatnio moim głównym zajęciem jest dziennik elektroniczny.

Updated on July 17, 2020

Comments

  • Janusz Skonieczny
    Janusz Skonieczny almost 4 years

    I know PyCharm is young IDE but id like to know if you guys have found some candy while using it. I know from experience that JetBrains IDE's are filled with candy and can't wait to find it all.

    Please list your tips, perhaps something you did not first expected to be there.