PyCharm默认快捷键(系统默认最全)中英文版 DEFAULT KEYMAP(PyCharm 2018.1) 个人翻译
本文将PyCharm自带的全部默认快捷键进行了翻译。个人自行翻译,不足之处欢迎留言交流。
查看PyCharm自带的默认快捷键的方法,请移步:
PyCharm默认快捷键(系统默认最全)英文版
红色高亮显示文本为本人最常用的快捷键。
系统默认快捷键之外,还有一些其他的操作技巧,请移步:
PyCharm设置自动换行
PyCharm使用最多也最常用默认快捷键介绍
自定义PyCharm快捷键的设置方法
1、编辑 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 call arguments) |
Ctrl + Q
|
快速查找文档
|
Quick documentation looku p
|
Shift + F1 | 外部文档 | External Doc |
Ctrl + mouse over | 代码简介 | code Brief Info |
Ctrl + F1 | 在caret中显示错误或警告信息 | Show descriptions of error or warning at 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 previous state |
Ctrl + Shift + ] | 选择到代码块结束位置 | Select till code block end |
Ctrl + Shift + [ | 选择到代码块起始位置 | Select till code block start |
Alt + Enter
|
★显示可执行操作和快速修正★
|
Show intention actions and quick-fxes
|
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 + Shift + NumPad-
|
折叠全部的代码块
|
Collapse all
|
Ctrl + F4 | 关闭当前激活的编辑选项卡 | Close active editor tab |
2、运行 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 | 运行manage.py任务 | Run manage.py task |
3、调试 Debugging
快捷键 | 功能(中文) | 功能(英文) |
---|---|---|
F8 / F7
|
跳过/跳入
|
Step over/into
|
Shift + F8 | 跳出 | Step out |
Alt + F9 | 运行到光标所在位置 | Run to cursor |
Alt + F8 | 验证表达式 | Evaluate expression |
Ctrl + Alt + F8 | 快速验证表达式 | Quick evaluate expression |
F9 | 恢复程序 | Resume program |
Ctrl + F8 | 切换断点 | Toggle breakpoint |
Ctrl + Shift + F8 | 查看断点 | View breakpoints |
4、导航 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 |
Alt + 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 lookup |
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 |
5、查找/替换 Search/Replace
快捷键 | 功能(中文) | 功能(英文) |
---|---|---|
Ctrl + F / Ctrl + R | 当前文档中查找/替换 | Find/Replace |
F3 / Shift + F3 | 查找下一个/查找上一个 | Find next/previous |
Ctrl + Shift + F
|
全局查找(可选在当前项目中)
|
Find in path
|
Ctrl + Shift + R | 全局替换(可选在当前项目中) | Replace in path |
6、搜索相关 Usage Search
快捷键 | 功能(中文) | 功能(英文) |
---|---|---|
Alt + F7 / Ctrl + F7 | 查找用法/在文件中查找用法 | Find usages / Find usages in file |
Ctrl + Shift + F7 | 文件中高亮显示用法 | Highlight usages in file |
Ctrl + Alt + F7 | 显示用法 | Show usages |
7、重构 Refactoring
快捷键 | 功能(中文) | 功能(英文) |
---|---|---|
F5 / F6 | 复制/移动 | Copy / 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 |
8、版本控制/本地历史记录 VCS/Local History
快捷键 | 功能(中文) | 功能(英文) |
---|---|---|
Ctrl + K
|
提交项目到VCS
|
Commit project to VCS
|
Ctrl + T | 从VCS更新项目 | Update project from VCS |
Alt + Shift + C | 查看最新变化 | View recent changes |
Alt + BackQuote (`) | 快速弹出‘VCS’ | ‘VCS’ quick popup |
9、模板 Live Template
快捷键 | 功能(中文) | 功能(英文) |
---|---|---|
Ctrl + Alt + J | 当前行使用模板 | Surround with Live Templates |
Ctrl + J | 插入模板 | Insert Live Template |
10、常规 General
快捷键 | 功能(中文) | 功能(英文) |
---|---|---|
Alt + #[0-9] | 打开/关闭相应的工具窗口 | Open corresponding tool window |
Ctrl + S
|
全部保存
|
Save all
|
Ctrl + 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 + BackQuote (`) | 快速切换现有组合 | Quick switch current scheme |
Ctrl + Alt + S
|
打开设置对话框
|
Open Settings dialog
|
Ctrl + Shift + A | 查找编辑器里的所有操作 | Find Action |
Ctrl + Tab | 在选项卡和工具窗口之间切换 | Switch between tabs and tool window |
结语:
玩转文中的快捷键,相信可以达到与Vim同样的神奇效果!
PyCharm默认快捷键(系统默认最全)中英文版 DEFAULT KEYMAP(PyCharm 2018.1) 个人翻译相关推荐
- 案例分析:线性诱导系统在道路交通安全中的应用
导读:"线性诱导"理念来源于空间照明设计领域的"线性照明"理念,利用多种线条形视线诱导设施来构建线性诱导系统.在道路交通设计中应用线性诱导系统可以改善道路环境整 ...
- jquery 获取系统默认年份_js中获得当前时间是年份和月份
js中获得当前时间是年份和月份,形如:201208 //获取完整的日期 var date=new Date; var year=date.getFullYear(); var month=date.g ...
- win10系统默认 登录界面中会有一个网络选项,如何关闭 ?
默认情况下, win10系统 登录界面中会有一个网络选项,它能够帮助用户在未登录情况下更方便地选择网络.不过,有些用户因为要一直挂机,所以希望可以去除掉网络选择,防止他人修改或关掉网络.这该如何操作呢 ...
- 服务器监控--cacti中英文版安装全解
近段时间一直在整服务器监控方面的东西,以下就是cacti中英文版安装的全过程,各安装包基本都是最新的,基于Centos 5.2平台下安装的!! #!/bin/bash # BY kerryhu # Q ...
- php怎么关联默认打开程序,win10系统打开文件时提示“请在默认程序控制面板中创建关联”如何解决...
近日有win10系统用户反映说在打开文件的时候,突然遇到了"请在默认程序控制面板中创建关联"的提示,导致无法打开文件,这该怎么办呢,本教程就给大家带来win10系统打开文件时提示& ...
- php默认字体是什么,在word中系统默认的中文字体和字号是什么,word默认字体
在word中系统默认的中文字体和字号是什么默认的中文字体和字号是多少,在word中,默认的中文字体和字号是"Tahoma"和"5号"."宋体" ...
- UITableView (4): 在TableView中移动cell和Section 从TableView中删除cell和section 添加系统默认刷新控件...
一 .问题:你想用流畅直观的动画来移动和拖拽TableView中的cell和section 方案: 用moveSection:toSection:方法把一个Section移动到新位置. 用moveR ...
- python可以在苹果系统上装吗_在Windows、Mac和 Linux系统中安装Python与 PyCharm
"工欲善其事,必先利其器",本文介绍 Python环境的安装和 Python的集成开发环境(IDE) PyCharn的安装. 一.Python安装( Windows.Mac和 Li ...
- C#中用DateTime的ParseExact方法解析日期时间(excel中使用系统默认的日期格式)
最近做的项目中服务器是英文的系统,系统需要通过excel的单元格导入日期,excel中的日期格式是系统默认的日期格式,如下图所示 以上日期格式,会跟着操作系统设置的日期格式相同例如我的中文系统的日期格 ...
最新文章
- 解决虚拟器device support x86 but apk only supports armeabi-v7
- SAP MM Return Purchase Order之使用
- (0086)iOS开发之iPhone 屏幕尺寸、分辨率、ppi以及@2x@3x图
- 数据挖掘十大经典算法之——AdaBoost 算法
- 解决Flash影片中的图片抖动锯齿
- zoj3381 Osaisen Choudai!
- C++的黑科技 利用一个字符对字符串进行分离
- Centos中常见error(网卡、网络、防火墙)
- activeMq-2 高可用以及集群搭建
- no typehandler found for property XXXX 解决
- mysql中的内置函数
- 算法导论——排序算法
- 行为设计模式 - 模板方法设计模式
- css 左边阴影_css揭秘-用户体验
- 数据库课程设计:医院门诊管理系统ER图、数据流程图
- dcp1608w电脑通过_dcp-1608打印机驱动程序
- 生成doc和docx教程
- 点击图标分享页面到QQ,微信,微博 等
- 登录模板源码 : bootstrap风格
- 统一社会信用代码 php验证