pycharm most commonly used shortcuts summary pycharm most commonly used shortcuts summary

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

5. 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

4. Set the comment color: File -> Settings -> Editor -> Color & Fonts -> LanguageDefaults -> Linecomment -> you can set the color

 

A commonly used shortcut keys

编辑类:

Ctrl + D             复制选定的区域或行
Ctrl + Y           删除选定的行
Ctrl + Alt + L     代码格式化
Ctrl + Alt + O     优化导入(去掉用不到的包导入)
Ctrl + 鼠标        简介/进入代码定义    
Ctrl + /           行注释 、取消注释

Ctrl + 左方括号   快速跳到代码开头
Ctrl + 右方括号   快速跳到代码末尾
Shift + F10        运行
Shift + F9         调试

查找/替换类:

Ctrl + F          当前文件查找
Ctrl + R          当前文件替换
Ctrl + Shift + F  全局查找
Ctrl + Shift + R  全局替换 

运行类:

Shift + F10        运行
Shift + F9         调试
Alt + Shift + F10  运行模式配置
Alt + Shift + F9   调试模式配置

调试类:

F8                单步调试(一行一行走)
F7                进入内部
Shift + F8        退出
Ctrl + F8         在当前行加上断点/断点开关
Ctrl + Shift + F8 查看所有断点

导航类:

Ctrl + N          快速查找类(也可查找当前工程中的文件,以文件名查找)
Double Shift      任意位置查找

 

二 配置自己喜欢的快捷键

 file——》setting——》在搜索框输入keymap,如图:

注意:在 上图标注1 的位置搜索要修改的功能,2的位置直接通过快捷键查找

 

 1  修改快捷键之快速跳到本行末尾:在1 位置输入end查找到:Move Caret to Line End

 

 

 2  修改快捷键之快速跳到本行开头:同上,修改为 Ctrl+引号

 

 3  修改快捷键之快速回到上一次操作的位置:

 

 

 

三 修改html的注释方式

如果pycharm中html注释是{# #}而不是<!-- -->,这是由于指定的模版语言是Django或者是jinja2,修改一下就可以了

file---->settings里搜索Python Template Languages --->指定html的模版语言为None就可以了,但是这样就不能快捷使用Django或者jinja2的模版语言了

四 按tab键代码自动补全

五 其它设置

1. Pycharm中默认是不能用Ctrl+滚轮改变字体大小的,可以在file -> Setting ->Editor-〉General -> Mouse中设置

2. 要设置Pycharm的字体,要先在file -> Setting ->Editor-〉Font中选择一种风格并保存,然后才可以改变

3. 在setting中搜索theme可以改变主题,所有配色统一改变

4 . 设置注释颜色:File-->Settings-->Editor-->Color&Fonts-->LanguageDefaults-->Linecomment-->设置颜色即可

Guess you like

Origin www.cnblogs.com/Toya/p/11166149.html