当前位置:网站首页>Pycharm shortcut keys

Pycharm shortcut keys

2022-06-24 10:34:00 Land without autumn

1、 Code edit shortcut

Serial number Shortcut key effect

1、CTRL + ALT + SPACE Import any class quickly

2、CTRL + SHIFT + ENTER Code completion

3、SHIFT + F1 View external documents

4、CTRL + Q Find documents quickly

5、CTRL + P parameter information ( The parameters that are invoked in the method )

6、CTRL + MOUSE OVER CODE essential information

7、CTRL + F1 Displays a description of the error or warning

8、CTRL + INSERT The generated code

9、CTRL + O Overloading methods

10、CTRL + ALT + T Package code

11、CTRL + / Single-line comments

12、CTRL + SHIFT + / Block annotation

13、CTRL + W Select the code step by step ( block )

14、CTRL + SHIFT + W Deselect code step by step ( block )

15、CTRL + SHIFT + [ Select from the current location to the beginning of the code block

16、CTRL + SHIFT + ] Select from the current location to the end of the code block

17、ALT + ENTER Code quick fix

18、CTRL + ALT + L Standardization of code formats

19、CTRL + ALT + O Optimize import

20、CTRL + ALT + I Automatic indentation

21、TAB Indent the code back

22、SHIFT + TAB Code indent forward

23、CTRL + SHIFT + V History copy and paste table

24、CTRL + D Copy the current line of code / block

25、CTRL + Y Delete the current line of code / block

26、CTRL + SHIFT + J The code is concatenated into one line

27、SHIFT + ENTER Start a new line

28、CTRL + SHIFT + U Capital letters

29、CTRL +DELETE Gradually delete backward

30、CTRL + BACKSPACE Gradually delete... Forward

31、CTRL + NUMPAD+/- Code block expansion / Fold

32、CTRL + SHIFT + NUMPAD+ Expand and stack all code blocks

33、CTRL + SHIFT + NUMPAD- Collapse all code blocks

34、CTRL + F4 Close the active edit window

2、 Search for / Replace shortcut keys

Serial number Shortcut key effect

1、CTRL + F lookup

2、F3 Find the next one

3、SHIFT + F3 Find the last one

4、CTRL + R Replace

5、CTRL + SHIFT + F Find... Under the specified path

6、CTRL + SHIFT + R Replace... Under the specified path

3、 Code run shortcut

Serial number Shortcut key effect

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 code

4、SHIFT + F9 Debugging code

5、CTRL + SHIFT + F10 Run the program file in the current editing area

4、 Code debugging shortcut

Serial number Shortcut key effect

1、F8 Single step

2、F7 Single step ( Same as when there is no function F8)

3、SHIFT + F8 Step out

4、ALT + F9 Run to the cursor position

5、ALT + F8 Test statement

6、F9 Rerun program

7、CTRL + F8 Switch breakpoints

8、CTRL + F8 View breakpoints

5、 Apply search shortcuts

Serial number Shortcut key effect

1、ALT + F7 Find apps

2、CTRL + F7 Find the application in the file

3、CTRL + SHIFT + F7 Highlight the application in the file

4、CTRL + ALT + F7 Show apps

6、 Code refactoring shortcuts

Serial number Shortcut key effect

1、F5 Copy file

2、F6 Moving files

3、SHIFT + F6 rename

4、ALT + DELETE Safe deletion

5、CTRL + F6 Change the formal parameters of the function

6、CTRL + ALT + M Extract the code as a function

7、CTRL + ALT + V Extract the code as a variable

8、CTRL + ALT + C Extract the code as a constant

9、CTRL + ALT + F Extract the code as a field

10、CTRL + ALT + P Extract the code as parameters

7、 Dynamic module shortcut key

Serial number Shortcut key effect

1、CTRL + ALT + J Wrap with dynamic templates

2、CTRL + J Insert dynamic template

8、 Navigation shortcuts

Serial number Shortcut key effect

1、CTRL + N Entry class

2、CTRL + SHIFT + N Enter file

3、CTRL + ALT + SHIFT + N Enter the symbol

4、CTRL + ←← Go to the previous edit location

5、CTRL + →→ Go to the next edit location

6、CTRL + →→ Go to the next edit location

7、SHIFT + ESC Hide activity / The last active window

8、CTRL + SHIFT + F4 Close the running of the activity / news / Find other windows

9、CTRL + G Displays the row and column where the cursor is located

10、CTRL + E Pop up recently opened files

11、CTRL + ALT + ←/→←/→ forward / Navigate backward

12、CTRL + SHIFT + BACKSPACE Navigate to the last edit location

13、CTRL + B Jump to the declaration section

14、CTRL + CLICK( Left mouse button ) Jump to the declaration section

15、CTRL + ALT + B Jump to the code implementation section

16、CTRL + SHIFT + I Open quick definition find

17、CTRL + SHIFT + B Jump to type description

18、CTRL + U Jump to superclass / Method

19、CTRL + ↑↑ Jump to the previous method

20、CTRL + ↓↓ Jump to the next method

21、CTRL + [ Jump to the beginning of the code block

22、CTRL + ] Jump to the end of the code block

23、CTRL + F12 Pop up file structure

24、CTRL + H Pop up class hierarchy

25、CTRL + SHIFT + H Pop up method hierarchy

26、CTRL + ALT + H Pop up the call hierarchy

27、F2 / SHIFT + F2 next / Last error

28、F4 View the source code

29、ALT + HOME Show navigation bar

30、F2 / SHIFT + F2 next / Last error

31、F11 Add bookmarks

32、CTRL + F11 add number / Alphabetic Bookmarks

33、CTRL + SHIFT + [1-9] Add digital Bookmarks

34、SHIFT + F11 Show Bookmarks

9、 Universal shortcut keys

Serial number Shortcut key effect

1、ALT + [0-9] Open the corresponding tool window

2、CTRL + ALT + Y Sync

3、CTRL + SHIFT + F12 Maximize editor

4、ALT + SHIFT + F add to favorites

5、ALT + SHIFT + I Use the current profile to check the current profile

6、CTRL + ALT + S The settings dialog box appears quickly

7、CTRL + SHIFT + A Find and debug the functions of the editor

8、ALT + TAB Switch between tabs and tool windows

原网站

版权声明
本文为[Land without autumn]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/175/202206240923111555.html