Resharper 2017.2.2 快捷键

Resharper 快捷键

In ”Resharper 2.x or Intellij IDEA Schema“




Edit  编辑


【 Ctrl + Alt + Space 】          Import Symbol 代码完成

【 Ctrl + Shift + Space 】       Smart Code Completion 代码完成

【 Ctrl + P 】                           Parameter Information 显示参数信息


【 Ctrl + Alt +Ins 】                Create New File...

【 Ctrl + J 】                           Insert Live Template... 生成if,try..catch,#region块

【 Ctrl + Alt + J 】                  Surround With Template


【 Ctrl +  W 】                        Extend Selection 增量反选

【 Ctrl + D 】                          Duplicate Text 复制当前行或选定的块

【 Ctrl + / 】                           Comment with Line Comment

【 Ctrl + Shift + / 】               Comment with Block Comment

【 Ctrl + Shift + Alt + ↑ 】    Rearrange Code,Move Up

【 Ctrl + Shift + Alt + ↓ 】    Rearrange Code,Move Down

【 Ctrl + Shift + Alt + ← 】    Rearrange Code,Move Left

【 Ctrl + Shift + Alt + → 】    Rearrange Code,Move Right


【 Ctrl + Alt + F 】Cleanup Code

【 Ctrl +Shift+ Alt + F】Silent Cleanup Code

【 Ctrl + Alt + S 】Apply Code Style


【Ctrl + Shift + V 】 Paste...

【 Ctrl + Shift + J 】Join Lines




Find 查找


Alt + F7 查找变量,方法的引用

Alt + Shift + F7 在设定范围中查找

Ctrl + Shift + F7 高亮显示

Ctrl + Alt + Up / Down 定位到下/前一个引用

Ctrl + Alt + F7 快速定位引用位置

Ctrl + Shift + F4 关闭查找结果tab

Ctrl + Alt + U 定位到查找结果




Naviage 导航


【 Ctrl + N  】                                          Go to Everything / Type...    前往类、属性、方法、变量等

【 Ctrl + Shift + N  】                              Go to File...                           查找文件

【 Ctrl + Shift + Alt +N 】                       Go to Symbol...                     前往类、属性、方法、变量等

【 Ctrl + F12 】                                        Go to File Member...

【 Ctrl + Shift + A 】                                Go to Action...


【 Ctrl + Shift + G 】                                Navigate To...

【  Alt + ↓ 】                                            Next Member

【 Alt + ↑ 】                                             Previous Member

【 Ctrl + [ 】                                             Containing Declaration      前往当前行所在的上级,例如函数名、类名处。


【 Ctrl + E 】                                             Recent Files...

【 Ctrl + Shift + Alt + Backspace 】        Recent Edits...

【 Ctrl + Shift + Backspace 】                 Previous Edit

【 Ctrl + Shift + Alt + G 】                        Related Files...                  最近编辑或查看的位置

【 Ctrl + ` 】                                              Bookmarks...


【 Ctrl + B 】                                             Go To Declaration

【 Ctrl + Shift + Alt + B 】                        Go To Implementation

【 Alt + F7 】                                             Find Usages

【Shift + Alt + F7 】                                  Find Usages Advanced...



Refactoring  重构

【 Shift + F6 】、【 F2 】                         Rename                           重命名类、方法、属性

【 Ctrl + Alt + L 】                                     Reformat Code               简单格式化代码,例如缩进等。

【 Ctrl+ Alt +F 】                                       Cleanup Code,Full       清理代码,会移除无用的引用等。

F6 将类移入另外的命名空间


Ctrl + F6 更改签名

Ctrl + Alt + N

Ctrl + Alt + M 将选定块抽取为一个方法

Ctrl + Alt + V 更改变量名称和类型

模板

Tab 根据缩写生成模板

Ctrl + J 插入模板

内置模板:

asrt 生成assertion

ear生成空数组

foreach 生成foreach 块

ital生成ArrayList的迭代循环

itar 生成array的迭代循环

itdic 生成dictionary的迭代循环

loop生成loop循环

out 打印串

outv 打印变量值

pci public const int

pcs public const string

pro protected

psr public static readonly

psvm main() method declaration

ritar Iterate an array in reverse order

sfc Safely cast variable

thr throw new

toar 将ArrayList 转化为array

你可能感兴趣的:(Resharper 2017.2.2 快捷键)