Umesh S Padashetty
Umesh S Padashetty

Reputation: 125

Is there a shortcut in PyCharm which highlights a code block

In IntelliJ, if you double click after open flower bracket ({), it automatically highlights the entire reachable code block. Is there a similar shortcut present in PyCharm where I can highlight blocks of code post a colon is encountered (like for loops, function defs, etc.)

Upvotes: 1

Views: 917

Answers (2)

Gautam
Gautam

Reputation: 1932

You can use Alt+Up for incremental selection. If you want to select the whole method, you can do Ctrl+Up then Alt+Up

https://www.jetbrains.com/help/pycharm/selecting-text-in-the-editor.html

Upvotes: 0

Stael
Stael

Reputation: 2689

You can use Alt+ to do this, sort of. At least on mac.

Upvotes: 2

Related Questions