zoukankan      html  css  js  c++  java
  • 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 lookup
    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
    Alt + / 循环往上查找相同单词补全 Cyclic Expand Word
    Alt + Shift + / 循环往下查找相同单词补全 Cyclic Expand Word (Backwrad)
    Alt + Shift + Up 代码上移 code move up
    Alt + Shift + Down 代码下移 code move down
    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同样的神奇效果!

  • 相关阅读:
    2020年. NET Core面试题
    java Context namespace element 'component-scan' and its parser class ComponentScanBeanDefinitionParser are only available on JDK 1.5 and higher 解决方法
    vue 淡入淡出组件
    java http的get、post、post json参数的方法
    vue 父子组件通讯案例
    Vue 生产环境解决跨域问题
    npm run ERR! code ELIFECYCLE
    Android Studio 生成apk 出现 :error_prone_annotations.jar (com.google.errorprone:error) 错误
    记忆解析者芜青【总集】
    LwIP应用开发笔记之十:LwIP带操作系统基本移植
  • 原文地址:https://www.cnblogs.com/xidongyu/p/10995323.html
Copyright © 2011-2022 走看看