pycharm shortcut key (full version)

Table of contents

foreword

1. Code editing shortcut keys

2. Search/replace shortcut keys

3. Shortcut keys for code execution

4. Shortcut keys for code debugging

5. Application search shortcut keys

6. Code Refactoring Shortcuts

Seven, dynamic module shortcut keys

8. Navigation shortcut keys

Nine, general shortcut keys


foreword

In order to facilitate the use and learning of pycharm, here are the shortcut keys that can be used in pycharm.

For the convenience of viewing and modification, according to the table above, the shortcut keys are sorted separately by category from top to bottom and from left to right as follows:

1. Code editing shortcut keys


1 CTRL+ALT+SPACE Quickly import any class
2 CTRL+SHIFT+ENTER Code completion
3 SHIFT+F1 View external documents
4 CTRL+Q Quickly find documents
5 CTRL+P Parameter information (parameters called in methods)
6 CTRL+ MOUSEOVERCODE Basic information
7 CTRL+F1 Display error or warning description
8 CTRL+INSERT Generate code
9 CTRL+O Overload method
10 CTRL+ALT+T Package code
11 CTRL+/ Single line comment
12 CTRL+SHIFT+/ Block comment
13 CTRL+W Select code (block) step by step
14 CTRL+SHIFT+W Deselect code (block) step by
step 15 CTRL+SHIFT+[Select from current position to start of code block
16 CTRL+SHIFT+] Select from current position to end of code block
17 ALT+ ENTER code quick correction18
CTRL+ALT+L code format standardization19
CTRL+ALT+O optimize import20
CTRL+ALT+I auto-indent21
TAB code backward indentation23
SHIFT+TAB code forward
unindentation24 CTRL+SHIFT+V History copy and paste table
25 CTRL+D Copy current code line/block
26 CTRL+Y Delete current code line/block
27 CTRL+SHIFT+J code connection into one
line 28 SHIFT+ENTER open a new line
28 CTRL+SHIFT+U capital letter
29 CTRL+DELETE gradually delete backward
30 CTRL+BACKSPACE forward gradually delete
31 CTRL+NUMPAD+/- code block expansion /Collapse
32 CTRL+SHIFT+NUMPAD+ Expand all code blocks Collapse
33 CTRL+SHIFT+NUMPAD- Collapse all code blocks
34 CTRL+F4 Close active editing window

2. Search/replace shortcut keys


1 CTRL+F Find
2 F3 Find next
3 SHIFT+F3 Find previous
4 CTRL+R Replace
5 CTRL+SHIFT+F Find under the specified path
6 CTRL+SHIFT+R Replace under the specified path

3. Shortcut keys for code execution


1 ALT+SHIFT+F10 Select the program file and run the code
2 ALT+SHIFT+F9 Select the program file and debug the code
3 SHIFT+F10 Run the code
4 SHIFT+F9 Debug the code
5 CTRL+SHIFT+F10 Run the program file in the current editing area

4. Shortcut keys for code debugging


1 F8 single step
2 F7 single step (same as F8 when there is no function)
3 SHIFT+F8 single step out
4 ALT+F9 run to the cursor position
5 ALT+F8 test statement
6 F9 rerun the program
7 CTRL+F8 switch breakpoint
8 CTRL+F8 View breakpoints

5. Application search shortcut keys


1 ALT+F7 Find Application
2 CTRL+F7 Find Application in Files
3 CTRL+SHIFT+F7 Highlight Application in Files
4 CTRL+ALT+F7 Show Applications

6. Code Refactoring Shortcuts


1 F5 copy file
2 F6 move file
3 SHIFT+F6 rename
4 ALT+DELETE safe delete
5 CTRL+F6 change function formal parameter 6
CTRL+ALT+M extract code as function
7 CTRL+ALT+V extract code as variable
8 CTRL+ALT+C Extract code as constant
9 CTRL+ALT+F Extract code as field
10 CTRL+ALT+P Extract code as parameter

Seven, dynamic module shortcut keys


1 CTRL+ALT+J Wrap with dynamic template
2 CTRL+J Insert dynamic template

8. Navigation shortcut keys


1 CTRL+N Enter category
2 CTRL+SHIFT+N Enter file
3 CTRL+ALT+SHIFT+N Enter symbol
4 CTRL+←← Enter previous edit position
5 CTRL+→→ Enter next edit position
6 CTRL+→→ Enter next edit position Position
7 SHIFT+ESC Hide the active/last active window
8 CTRL+SHIFT+F4 Close the active run/message/find window
9 CTRL+G Display the line and column where the cursor is located
10 CTRL+E Pop up the recently opened file
11 CTRL+ ALT+←/→←/→ Navigate forward/backward
12 CTRL+SHIFT+BACKSPACE Navigate to last edited position
13 CTRL+B Jump to declaration section
14 CTRL+CLICK (left mouse button) Jump to declaration section
15 CTRL +ALT+B Jump to code implementation
16 CTRL+SHIFT+I Open quick definition lookup
16 CTRL+SHIFT+B Jump to type description
17 CTRL+U Jump to superclass/method
18 CTRL+↑↑ Jump to previous Method
19 CTRL+↓↓ Jump to the next method
20 CTRL+[ Jump to the beginning of the code block
21 CTRL+] Jump to the end of the code block
22 CTRL+F12 Pop up the file structure
23 CTRL+H Pop up the class hierarchy
24 CTRL+SHIFT+H popup method hierarchy
25 CTRL+ALT+H popup call hierarchy
26 F2/SHIFT+F2 next/previous error
27 F4 view source code
28 ALT+HOME show navigation bar
29 F2/SHIFT+F2 Next/Previous Error30
F11 Add Bookmark31
CTRL+F11 Add Number/Letter Bookmark32
CTRL+SHIFT+[1-9] Add Number Bookmark33
SHIFT+F11 Show Bookmark

Nine, general shortcut keys


1 ALT+[0-9] Open corresponding tool window
2 CTRL+ALT+Y Synchronize
3 CTRL+SHIFT+F12 Maximize editor
4 ALT+SHIFT+F Add to favorites
5 ALT+SHIFT+I Inspect with current profile Current file
6 CTRL+ALT+S Quickly pop up the settings dialog
7 CTRL+SHIFT+A Find and debug editor functions
8 ALT+TAB Switch between tabs and tool windows
 

Guess you like

Origin blog.csdn.net/weixin_64338372/article/details/129842717