Pycharm快捷键 —— 常用的已标记

Editing 编辑

快捷键 功能 译文
Ctrl + Space Basic code completion(the name of any class,method or variable) 基本代码完成(任何类、方法或变量的名称)
Ctrl + Alt +Space Class name completion(the name of any project class independently of current imports) 类名完成(独立于当前导入的任何项目类的名称)
Ctrl + Shift +Enter Complete statement 补全当前语句
Ctrl + P Parameter info(within method class arguments) 参数信息(在方法类参数中)
Ctrl + Q Quick documentation lookup 快速查找文档
Shift + F1 External Doc 外部文档
Ctrl + mouse over code Brief info 基本信息
Ctrl + F1 Show descriptions of error or warning ar caret 显示错误或警告的描述
Alt + Insert Generate code… 生成代码
Ctrl + O Override methods 重载基类中的方法、重载方法
Ctrl + Alt + T Surround with… 用…包围
Ctrl + / Comment/uncomment with line comment 注释/取消注释 行
Ctrl + Shift + / Comment/uncomment with block comment 注释/取消注释 块
Ctrl + W Select successively increasing code blocks 选择连续增加的代码块
Ctrl + Shift + W Decrease current selection to pervious state 减少已经选择的代码
Ctrl +Shift + ] Select till code block end 选择代码块直到结束
Ctrl +Shift + [ Select till code block start 选择直到代码块开始
Alt + Enter Show intention actions and quick-fixes 显示意图动作和快速修复
Ctrl + Alt + L Reformat code 根据模板格式对代码格式化
Ctrl + Alt + O Optimize imports 优化导入,去掉无用导入
Ctrl + Alt + I Auto-indent line(s) 自动缩进
Tab Indent selected lines 缩进选定的行
Shift + Tab Unindent selected lines 取消缩进选定的行
Ctrl + X,Shift + Delete Cut current line or selected block to clipboard 将当前行或选定块剪切到剪贴板
Ctrl + C,Ctrl + Insert Copy current line or selected block to clipboard 将当前行或选定块复制到剪贴板
Ctrl + V,Shift + Insert Paste from clipboard 从剪切板粘贴
Ctrl + Shift + V Paste from recent buffers… 从最近的缓冲区粘贴…
Ctrl + D Duplicate current line or selected block 复制当前行或选定块
Ctrl + Y Delete line at caret 删除光标所在位置行
Ctrl + Shift +J Smart line join 智能线连接
Ctrl + Enter Smart line split 智能线分隔
Shift+ Enter Start new line 开启新行
Ctrl + Shift + U Toggle case for word at caret or selected block 在选中块或者光标行切换
Ctrl + Delete Delete to word end 删除到单词结束
Ctrl + Backspace Delete to word start 删除到单词开始
Ctrl + Numpad+ Expand code block 扩展代码块
Ctrl + Numpad- Collapse code block 折叠代码块
Ctrl + Shift + Numpad+ Expand all 展开所有代码
Ctrl + Sgift - Numpad+ Collapse all 折叠所有代码
Ctrl + F4 Close active editor tab 关闭活动编辑器选项卡

Running 运行

快捷键 功能 译文
Alt + Shift + F10 Select configuration and run 选择配置并运行
Alt + Shift + F9 Select configuration and debug 选择配置和调试
Shift + F10 Run 运行
Shift + F9 Debug 调试
Ctrl + Shift + F10 Run context configuration from editor 从编辑器运行上下文配置
Ctrl + Alt + R Run manage.py task 运行管理PY任务

调试 Debugging

快捷键 功能 译文
F8/F7 Step over/into 跨过/进入、单步调试
Shift + F8 Step out 跳出
Alt + F9 Run to cursor 运行到光标处
Alt + F8 Evaluate expression 表达式求值
Alt + Alt + F8 Quick evaluate expression 快速求值表达式
F9 Resume program 恢复程序
Ctrl + F8 Toggle breakpoint 切换断点
Ctlr + Shift + F8 View breakpoint 断点视图

Navigation 导航

快捷键 功能 译文
Ctrl + N Go to class
Ctrl + Shift + N Go to file
Ctrl + Alt + Shift + N Go to symbol 转到标记
Alt + Right Go to next editor tab 转到下一个编辑器选项卡
Alt + Left Go to previous editor tab 转到上一个的编辑器选项卡
F12 Go back to previous tool window 回到以前的工具窗口
Esc Go to editor(from tool window) (从工具窗口)转到编辑器
Shift + Esc Hide active or last active window 隐藏活动窗口或最后一个活动窗口
Ctrl + Shift + F4 Close active run/messages/find/…tab 关闭活动运行/消息/查找/…选项卡
Ctrl + G Go to line 转到行
Ctrl + E Recent files popup 弹出最近打开的文件
Ctrl + Alt + Right Navigate forward 向前导航
Ctrl + Alt + Left Navigate back 向后导航
Ctrl + Shift + Backspace Navigate to last edit location 导航到最后编辑位置
Ctrl + F1 Select current file or symbol in any view 在任何视图中选择当前文件或标记
Ctrl + B,Ctrl + Click Go to declaration 转到声明
Ctrl + Alt + B Go to implementation(s) 转到实现
Ctrl + Shift + I Open quick definition 打开快速定义
Ctrl + Shift + B Go to type declaration 转到类型声明
Ctrl + U Go to super-method/super-class 转到父类、超类
Alt + Up/Down Go to previous/next method 转到上一个/下一个方法
Ctrl + ]/[ Move to code block end/start 移动代码块到结束/起始位置
Ctrl + F12 File structure popup 弹出文件结构窗口
Ctrl + H Type hierarchy 显示类层次结构
Ctrl + Shift + H Method hierarchy 显示方法层次结构
Ctrl + Alt + H Call hierarchy 显示方法调用关系
F2/Shift +F2 Next/previous highlighted error 显示下一个/上一个明显的错误
F4 Edit source 编辑源代码
Ctrl + Enter View source 资源视图
Alt + Home Show navigation bar 显示导航栏
F11 Toggle bookmark 切换书签
Ctrl + Shift + F11 Toggle bookmark with mnemonic 使用助记符切换书签
Ctrl + #[0-9] Go to numbered bookmark 书签编号
Shift + F11 Show bookmarks 显示书签

Search/Replace 搜索/替换

快捷键 功能 译文
Ctrl + F/Ctrl+R Find/Replace 搜索/替换
F3/Shift + F3 Find next/pervious 查找下一个或者上一个
Ctrl + Shift + F Find in path 指定路径查找
Ctrl + Shift + R Replace in path 指定路径替换

Usage Search 搜索相关

快捷键 功能 译文
Alt + F7/Ctrl + F7 Find usages in file 在文件内查找
Ctrl + Shift +F7 Highliht usages in file 文件惯例搜索
Ctrl + Alt + F7 Show usages 显示用法

Refactoring 重构

快捷键 功能 译文
F5/F6 Cpoy/Move 拷贝或者移动
Alt + Delete Safe Delete 删除/安全删除
Shift + F6 Rename 重命名
Ctrl + F6 Change Signature 修改签名
Ctrl + Alt + N Inline 内联
Ctrl + Alt + M Extract Method 提取方法
Ctrl + Alt + V Extract Variable 提取变量
Ctrl + Alt + F Extract Field 提取字段
Ctrl + Alt + C Extract Constant 提取常量
Ctrl + Alt + P Extract Parameter 提取参数

VCS/Local History 版本控制服务器/本地历史

快捷键 功能 译文
Ctrl + K Commit project to VCS 提交工程到版本控制服务器
Ctrl + T Update project from VCS 从版本控制服务器更新工程
Alt + Shift + C View recent changes 查看最新改动
Alt + BachQuote(`) ‘VCS’ quick popup 快速弹出版本控制服务器

Live Templates 动态模块

快捷键 功能 译文
Ctrl + Alt +J Surround with Live Templates 动态模块包裹
Ctrl + J Insert Live Template 插入实时模板

General 通常

快捷键 功能 译文
Alt +#[0-9] Open corresponding tool window 打开相应的工具窗口
Ctrl + S Save all 保存所有
Ctlr + Alt +Y Synchronize 同步
Ctrl + Shift + F12 Toggle maximizing editor 切换编辑器最大化
Alt + Shift + F Add to Favorites 收藏
Alt + Shift + I Inspect current file with current profile 用当前配置文件检查当前文件
Ctrl + BachQuote(`) Quick switch current scheme 快速开启最近的解决方案
Ctrl + Alt + S Open Settings dialog 打开设置对话框
Ctrl + Shift + A Find Action 查找并调用编辑器的功能
Ctrl + Tab Switch between tabs and tool window 在选项卡和工具窗口之间切换

本人英语水平有限,翻译不正确的还请多多指正![email protected]

猜你喜欢

转载自blog.csdn.net/m0_38032942/article/details/81284864
今日推荐