Use the shortcut keys pycharm

As a future program ape, shortcut keys is very important for us, because it is easy and fast, today gave you pycharm commonly used shortcuts

1. Edit:

Ctrl + Space ------------------ basic code is completed (classes, methods, attributes)

Ctrl + Alt + Space ----------- quickly import any class

Ctrl + Shift + Enter ---------- statement completion

Ctrl + P ------------------------ parameter information (parameter in the method call)

Ctrl + Q ------------------------ quickly view documents

F1 ------------------------------ external document

Shift + F1 ---------------------- external documents into web documents Home

Ctrl + Shift + Z -------------- Redo heavy 做

Ctrl + Mouse Introduction / ------------- enter custom code

Ctrl + F1 ---------------------- display an error or warning messages describing

Alt + Insert ------------------- automatically generated code

Ctrl + O ----------------------- method again

Ctrl + Alt + T ----------------- selected

Ctrl + / line comments / --------------- canceled line comments

Ctrl + Shift + / ---------------- block comment

Ctrl + W ----------------------- increase the selected code block

Ctrl + Shift + W -------------- back to the previous state

Ctrl + Shift +] / [-------------- selected code block ends, start

Alt + Enter --------------------- Quick Fix

Ctrl + Alt + L ------------------ code formatting

Ctrl + Alt + O ------------------ optimization introduced

Ctrl + Alt + I ------------------ automatic indenting

Tab / Shift + Tab ------------- indent, not indent the current line

Ctrl + X / Shift + Delete ---------- the current line or a selected block to the clipboard

Ctrl + C / Ctrl + Insert ------------ duplicated code blocks of the current row to the clipboard or selected

Ctrl + V / Shift + Insert ----------- paste from the clipboard

Ctrl + Shift + V ---------------- paste from the nearest buffer

Ctrl + D ------------------------- copy the selected area or row

Ctrl + Y ------------------------- delete selected row

Ctrl + Shift + J ---------------- add intelligent line

Ctrl + Enter ------------------- Smart Wire

Shift + Enter ------------------- separate line

Ctrl + Shift + U ---------------- switch between selected areas or blocks of code

Ctrl + Delete ------------------- delete the character to the end

Ctrl + Backspace ------------- delete the character to start

Ctrl + Numpad +/- ------------ expand / collapse code block (the current position: a function, comments, etc.)

Ctrl + shift + Numpad +/- --- Expand / Collapse all code blocks

2. Find / Replace (Search / Replace)

F3 ------------------------------- next

Shift + F3 ---------------------- previous

Alternatively Ctrl + R ------------------------

Ctrl + Shift + F或者连续2次敲击shift 全局查找(可以在整个项目中查找某个字符串什么的,如查找某个函数名字符串看之前是怎么使用这个函数的)

Ctrl + Shift + R-------------- 全局替换

3.运行(Running)

Alt + Shift + F10 ----------------运行模式配置

Alt + Shift + F9------------------调试模式配置

Shift + F10------------------------运行

Shift + F9 ------------------------调试

Ctrl + Shift + F10 ---------------运行编辑器配置

Ctrl + Alt + R --------------------运行manage.py任务

4.调试(Debugging)

F8 -------------------------------跳过

F7------------------------------- 进入

Shift + F8 ----------------------退出

Alt + F9-------------------------运行游标

Alt + F8-------------------------验证表达式

Ctrl + Alt + F8---------------- 快速验证表达式

F9--------------------------------恢复程序

Ctrl + F8 -----------------------断点开关

Ctrl + Shift + F8 -------------查看断点

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

6.搜索相关(Usage Search)

Alt + F7/Ctrl + F7-----------文件中查询用法
Ctrl + Shift + F7-------------文件中用法高亮显示
Ctrl + Alt + F7----------------显示用法

7.重构(Refactoring)

F5---------------------------复制

F6---------------------------剪切
Alt + Delete---------------安全删除
Shift + F6------------------重命名
Ctrl + F6--------------------更改签名
Ctrl + Alt + N--------------内联
Ctrl + Alt + M--------------提取方法
Ctrl + Alt + V--------------提取属性
Ctrl + Alt + F--------------提取字段
Ctrl + Alt + C--------------提取常量
Ctrl + Alt + P--------------提取参数

8、控制VCS/Local History

Ctrl + K---------------------------提交项目
Ctrl + T---------------------------更新项目
Alt + Shift + C------------------查看最近的变化
Alt + BackQuote(')VCS------快速弹出

9、模版(Live Templates)

Ctrl + Alt + J---------当前行使用模版
Ctrl +J---------------插入模版

10、基本(General)

Alt + #[0-9] ----------打开相应的工具窗口
Ctrl + Alt + Y---------同步
Ctrl + Shift + F12----最大化编辑开关
Alt + Shift + F--------添加到最喜欢
Alt + Shift + I---------根据配置检查当前文件
Ctrl + BackQuote(')--快速切换当前计划
Ctrl + Alt + S-----------打开设置页
Ctrl + Shift + A--------查找编辑器里所有的动作

Ctrl + Tab--------------在窗口间进行切换

 

Guess you like

Origin www.cnblogs.com/yxh6666/p/11589537.html