1. Foreword
To summarize the PyCharm for Mac shortcut keys that you usually use, because the Windows version is often found on the Internet, so it is a memo, and it will be updated from time to time.
2. Shortcut keys for PyCharm for Mac Shortcut key
description
cmd + b Jump to the declaration (cmd plus mouse)
cmd + d Copy the content of this line on the next line
cmd [] The position before / after the cursor
cmd + opt + [] function and Before and after the method
cmd + backspace Delete the current line
cmd + c Copy the current line of the cursor, cut the same
cmd + f Current file search (Enter the next shift Enter the previous one)
cmd + r Replace the current file
cmd + shift + f Global search
cmd + shift + r Global replacement
cmd + shift + a Search action
cmd + o Search class
cmd + opt + o Search symbol (function etc.)
cmd + shift + o Search file
shift + shift Any search function
cmd + l Specify line Count jump
shift + enter to go to the next line (new) when in the line
cmd + expand current
cmd-collapse current
cmd shift + expand all
cmd shift-collapse all
cmd / comment / uncomment a line
cmd + opt + / batch comment (pycharm does not take effect)
ctr + tab The most NB navigation window in the history (project file list, file structure list, command line mode, code check, VCS, etc., the following two can be replaced)
alt + F12 open the command line bar
cmd + F12 display file structure
cmd + j code intelligent completion
alt + F1 locate the location of the edit file:
cmd + F6 change variable
cmd + opt + t specifies that the code is surrounded by comment statements or logical structures, functions
Tab / Shift + Tab indent, not indent the current line
cmd + opt + l code block alignment
opt + F7 find usage