史上最全 不看后悔 clion 快捷方式 提高开发速度

默认快捷方式

      • 图片
      • Editing
      • Search/Replace
      • Usage Search
      • Compile and Run
      • Navigation
      • Refactoring
      • Debugging
      • VCS/Local History
      • Live Templates
      • General

这个pdf 是在安装路径下的help 里找到的

图片

史上最全 不看后悔 clion 快捷方式 提高开发速度_第1张图片

我来翻译下吧

Editing

快捷键 说明 翻译
Ctrl + Space Basic code completion (the name of any class, function or variable) 自动补全
Ctrl + Shift + Space Smart code completion (filters the list of functions and variables by expected type) 智能补全
Ctrl + Shift + Enter Complete statement 补全声明
Ctrl + P Show parameters info of the function call at caret 在插入符号处显示函数调用的参数信息
Ctrl + Q Quick documentation lookup 快速文档查找
Ctrl + mouse over code Brief Info 简要信息
Ctrl + F1 Show descriptions of error or warning at caret 在尖号处显示错误或警告的描述
Alt + Insert Generate code…(Getters, Setters, Constructors, Destructors) 自动生成代码,设置,获取,构造,析构
Ctrl + O Override base class functions in the current class 在当前类中重写基类函数
Ctrl + I Implement functions in the current class 当前类中的实现函数
Ctrl + Alt + T Surround selected code fragment with if, while, try/catch, #ifdef or other construct 使用if,while,try / catch,#ifdef或其他结构包起来所选代码片段
Ctrl + / Comment/uncomment current line or selected block with line comments 注释/取消注释当前行或带有行注释的选定内容
Ctrl + Shift + / Comment/uncomment code with block comments 带块注释的注释/取消注释代码
Ctrl + W Select successively increasing code blocks/ 选择连续增加的代码块
Ctrl + Shift + W Decrease current selection to previous state 将当前选择减小到以前的状态
Alt + Q Show intention actions and quick-fixes 显示意图操作和快速修复
Ctrl + Alt + L Reformat code 重新格式化代码
Ctrl + Alt + O Optimize includes 优化 includes
Ctrl + Alt + I Auto-indent line(s) 自动缩进行
Tab / Shift + Tab Indent/Unindent selected lines 缩进/取消缩进选定的行
Ctrl + X Cut current line or selected block to clipboard
Ctrl + C Copy current line or selected block to clipboard
Ctrl + V Paste from clipboard
Ctrl + Shift + V Paste from recent buffers 从最近的缓冲区粘贴
Ctrl + D Duplicate current line or selected block 复制当前行或所选块 = cv
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 + Shift + ]/[ Select till code block end/start 选择从当前到end
Ctrl + Delete Delete to word end 删到尾
Ctrl + Backspase Delete to word start 删到头
Ctrl + NumPad+/- Expand/Collapse code block 展开/折叠代码块
Ctrl + Alt + NumPad+/- Expand/Collapse all 展开/折叠所有代码
Ctrl + F4 Close active editor tab 关闭活动的编辑器选项卡
Alt + Shift + Click Place the caret in multiple locations 将插入号放置在多个位置
Esc Restore single carret mode 退出单车模式?
Alt + J / Alt + Shift + J Add/delete next occurrence of current word to the selection 添加/删除 选中的单词在下一个出现的为止

Search/Replace

放弃翻译了

快捷键 说明
Ctrl + F/R Find/Replace
F3 / Shift + F3 Find next/previous
Ctrl + Shift + F/R Find/Replace in path
Double Shift Search everywhere

Usage Search

快捷键 说明
Alt + F7 Find usages
Ctrl + F7 Find usages in file
Ctrl +Shift + F7 Highlight usages in file
Ctrl + Alt + F7 Show usages

Compile and Run

快捷键 说明
Ctrl + F9 Build Project
Shift + F10 Run
Shift + F9 Debug
Alt + Shift + F10 Select configuration and run
Alt + Shift + F9 Select configuration and debug

Navigation

快捷键 说明
Ctrl + N Go to class
Ctrl + Shift + N Go to file
Ctrl + Alt + Shift +N Go to symbol
Alt + Right/Left Go to next/previous editor tab
F12 Go back to previous tool window
Escape Go to editor (from tool window)
Shift + Esc Hide active or last active window
Ctrl + Shift + F4 Close active tool window tab
Ctrl + G Go to line
Ctrl + E Recent files popup
Ctrl + Alt + Right Navigate back
Ctrl + Alt + Left Navigate forward
Ctrl + Shift + Backspace Navigate to last edit location
Alt + F1 Select the current class or function in any view
Ctrl + Alt + Home Go to related symbol (header or source file)
Ctrl + B Go to declaration
Ctrl + Alt + B Go to definition
Ctrl + Shift + I Open quick definition lookup
Ctrl + U Go to base class/base function
Alt + Up / Alt + Down Go to previous/next function
Ctrl + ] Move to code block end
Ctrl + [ Move to code block start
Ctrl + F12 Popup structure of the current file for quick navigation
Ctrl + H Type hierarchy
Ctrl + Alt + H Call hierarchy
F2 / Shift + F2 Next/previous highlighted error
F11 Toggle bookmark at the current location
Ctrl + F11 Toggle bookmark with mnemonic
Ctrl + 0 … Ctrl + 9 Go to numbered bookmark
Shift + F11 Show list of all bookmarks

Refactoring

快捷键 说明
Ctrl + Alt + Shift +T Refactor This (shows all available refactorings)
F5/F6 Copy/Move
Alt + Delete Safe Delete
Shift + F6 Rename
Ctrl + F6 Change Signature
Ctrl + Alt + N Inline
Ctrl + Alt + M Extract Function
Ctrl + Alt + V Introduce Variable
Ctrl + Alt + P Introduce Parameter
Ctrl + Alt + C Introduce Constant
Ctrl + Alt + D Introduce Define

Debugging

快捷键 说明
F8 / F7 Step over/into
Shift + F8 Step out
Alt + F9 Run to cursor
Alt + F8 Evaluate expression
F9 Resume program
Ctrl + F8 Toggle breakpoint
Ctrl + Shift + F8 View breakpoints

VCS/Local History

快捷键 说明
Ctrl + K Commit project to VCS
Ctrl + T Update project from VCS
Shift + Alt + C View recent changes
Alt + BackQuote (`) VCS’ quick popup

Live Templates

快捷键 说明
Ctrl + Alt + J Surround the selection with Live Template
Ctrl + J Insert Live Template
for Indexed for(;; ) loop
iter Iterate range (C++11)
itit Iterate using begin/end member functions
incboost In CMake include directories with Boost
function In CMake create new function definition

General

快捷键 说明
Alt + 0 … Alt + 9 Open corresponding tool window
Ctrl + Shift + F12 Hide all tool windows
Alt + Shift + F Add to Favorites
Alt + Shift + I Inspect current file with current profile
Ctrl + BackQuote (`) Quick switch current scheme
Ctrl + Alt + S Edit application Settings

你可能感兴趣的:(#,软件系统)