formatting code shortcut keys used pycharm

formatting code shortcut keys used pycharm

ctrl+alt+L

A commonly used shortcut keys

Editorial:

the Ctrl + D Copies the selected region or row
Ctrl + Y Delete selected rows
Ctrl + Alt + L code formatting
Ctrl + Alt + O optimization introducing (removing less than the package into)
the Ctrl + Mouse Introduction / enter code defines    
Ctrl + / line comments, uncomment

Beginning Ctrl + left bracket quickly jump to the code
Ctrl + right bracket quickly jump to the code at the end
Shift + F10 run
Shift + F9 commissioning

Find / Replace category:

Ctrl + F to find the current file
Ctrl + R to replace the current file
Ctrl + Shift + F global Search
Ctrl + Shift + R global replacement 

operation categories:

the Shift + the F10 run
Shift + F9 debugging
Alt + Shift + F10 operating mode configuration
Alt + Shift + F9 debug mode configuration

and debugging:

the F8 stepping (line a walking)
F7 into the internal
Shift + F8 exit
Ctrl + F8 breakpoint in the current line plus / break switch
Ctrl + Shift + F8 to view all breakpoints

navigation classes:

Ctrl + N to quickly find class (also look for files in the current project, the file name Find)
Double find anywhere in the Shift

 

 

 

Two configure their favorite shortcuts

 file - "setting--" in the search box to enter keymap, as shown:

Note: Note the location search on the icon you want to modify the function of 1, position 2 look directly through the shortcut

 

 1 modify the shortcut keys to quickly jump to the end of the line: Enter the end to find the position: Move Caret to Line End

 

 

 2 Modify the shortcut keys to quickly jump to the beginning of the line: same as above, modified as Ctrl + quotes

 

 3 Modify the shortcut keys to quickly return to the position of the last operation:

 

 

 

 Three ways to modify the html comments

If pycharm in html comment is {##} instead of <! - ->, which is due to be designated Django template language or jinja2, modify it

file ----> settings in search Python Template Languages ​​---> specify html template language to None on it, but this can not be quickly or use the Django template language of the jinja2

 Four press the tab key code auto-completion

 

Other settings

1. Pycharm can not change the default font size use Ctrl + scroll wheel, you can file - General> Editor-> - - > Setting> Mouse Set

2. To set the font Pycharm, first in the file -> Setting -> Editor -> Font, select a style and save before you can change

3. in setting the search theme may change the subject, all unified color change

I can feel you forgetting me. . There is a tacit understanding is called I ignore you, you ignored me

Guess you like

Origin blog.csdn.net/qq_34106574/article/details/90232805