PyCharm and Intellij KeyBoard Shortcuts

I use pycharm in my daily jobs. I love PyCharm IDE as it’s one of the best in market if you do the programming in Python.

I always find it easier and faster when I use the keyboard compare to mouse while writing, searching or navigating the code.

Note: Use Mac 10.5+ Kyemapping -> Preference -> Keymap

Search Class:
CMD + O

Search Files:
CMD + SHIFT + O
Search Folders: S2 + Search with ‘/’

Search Symbols:
OPTION + CMD + O
To Search Specific Type(Class or Method) : S3 + <classname>.<keyword|method|variable>

Search with wildcards :
above commands + <keyword> or <keyword>

Search Everywhere:
SHIFT + SHIFT
Go to different section: Tab
Search History: Left Arrow or Right Arrow

Go to specific line number:
(in this example 40) of file/class: Search Class/Files + File Name:40 or Class Name:60

See Recent Files: (Search on window by typing keywords)
CMD + E
Tab to check section and up(arrow) and down(arrow)

Recently Edited Files: (Search on window by typing keywords)
CMD + SHIFT + E

Go Forward: CMD + ] or OPTION + CMD + Right Arrow
Go Backward: CMD + ] or OPTION + CMD + Left Arrow

Go to Project Section: CMD + 1
You can type to search for any file in project section

Suggestion: Better practice to disable AutoScroll to Source and Enable AutoScroll From Source

Open the file From Project Section(Left Side Pane)
CMD + DOWN ARROW
Not Open Source: ESC From Project Section

Create the File/Directory :
CMD + 1 (Go to Project sections) and CMD + N (Create new file or directory)
Note: you can use abc/cde/fl.txt as well, intellij will create the directory for you
OR
CMD + N from the code editor and it will show the same options.

Distraction Free:
SHIFT + CMD + F12

Resize Windows(Project/Split) :
CMD + SHIFT + LEFT|RIGHT ARROW

Move Particular line up and down:
Select Line(lines) + ALT + SHIFT + UP|DOWN ARROW

Open the Copy/Paste Clipboard
CMD + SHIFT + P
Duplicate the Line: CMD + D
Delete the line: CMD + X

Find Occurrence of words in file:
Select any keywords and CTRL + CMD + G
Move to Next Occurrence: CMD + G

Format the Code:
Selected Lines: CTRL + OPTION + I
Whole File: OPTION + CMD + L
Method Only:
Select the whole Method: (cursor on method name)
OPTION + UP ARROW
Reformat Option to display: OPTION + ENTER

Auto Completion:
To Show Method Parameters: CMD + P
To select all the words match to newly write string: OPTION + \

Navigation:
To show multiple implementation: OPTION + CMD + B
To go to implementation: CMD + B
To Go Back: OPTION + CMD + LEFT ARROW
To Go Forward: OPTION + CMD + RIGHT ARROW

Pop up All the Method, Class and Symbol : CMD + F12 or CMD + 7
Shows Navigation Bar: CMD + UP ARROW
Then you can drill down on each directory

Common Options to pop : CTRL + `
Action Lookup : Shift + CMD + A
Show the Code Pop Up: CMD + Y
Switch Between the Tabs: CTRL + TAB or OPTION + TAB
Find Usage of Method(Only works on def method()): CTRL + [
Go to End of Method or Class: CMT + OPTION + [ or CMT

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Blog at WordPress.com.

Up ↑

%d bloggers like this: