VS代码生成工具ReSharper配置快捷键
来源:互联网 发布:loading page优化方案 编辑:程序博客网 时间:2024/05/16 10:16
VS代码生成工具ReSharper提供了丰富的快捷键,可以极大地提高你的开发效率。安装ReSharper后首次启动Visual Studio时,会出现一个名为ReSharper Keyboard Scheme的对话框,如下图所示:
选择对话框提供的三个选项之一后的任何时候,您可以配置单独的键盘快捷键。
配置单个键盘快捷键
1、在主菜单上,选择Tools | Options
2、在导航视图中选择Environment | Keyboard
3、在命令列表中,选择启动ReSharper的命令名称。浏览列表以查看或者编辑ReSharper的特定操作的键盘快捷方式。
在键盘快捷方式间切换或者恢复到当前选定方案的默认状态
1、在主菜单上,选择ReSharper | Options
2、选择Environment | Keyboard and Menus
3、在Keyboard and Menus选项卡上,选择 Visual Studio, ReSharper 2.x 或 IntelliJ IDEA或 None,点击Apply Scheme。如果你选择None,你可以在Visual Studio的本地选项菜单中定义任意一组自定义快捷键(Tools | Options | Environment | Keyboard) 。
完整的快捷键列表
代码分析(Code analysis)
CommandShortcut(Visual Studio)Shortcut
(IntelliJ IDEA/ReSharper 2.x)Toggle code analysis in the current fileCtrl+Shift+Alt+8Ctrl+Shift+Alt+8Go to next code issue (error, warning or suggestion)Alt+PgDnF12Go to previous code issue (error, warning or suggestion)Alt+PgUpShift+F12Go to next errorShift+Alt+PgDnAlt+F12Go to next error in solutionShift+Alt+PgDnAlt+F12Go to previous errorShift+Alt+PgUpShift+Alt+F12Go to previous error in solutionShift+Alt+PgUpShift+Alt+F12Inspect thisCtrl+Shift+Alt+ACtrl+Shift+Alt+AView type hierarchyCtrl+E,HCtrl+Alt+HInspection Results windowCtrl+Alt+VCtrl+Alt+V
编码援助(Coding assistance)
CommandShortcut(Visual Studio)Shortcut
(IntelliJ IDEA/ReSharper 2.x)Show action listCtrl+R,WCtrl+R,WPaste multiple Ctrl+Shift+V Code cleanupCtrl+E,CCtrl+Alt+F Silent code cleanupCtrl+E,FCtrl+Shift+Alt+FSymbol code completionCtrl+SpaceCtrl+SpaceSmart code completionCtrl+Alt+SpaceCtrl+Shift+SpaceImport symbol completionShift+Alt+SpaceCtrl+Alt+SpaceComplete statementCtrl+Shift+EnterCtrl+Shift+EnterParameter informationCtrl+Shift+SpaceCtrl+PQuick documentationCtrl+Shift+F1Ctrl+QInsert live templateCtrl+E,LCtrl+JSurround with templateCtrl+E,UCtrl+Alt+JCreate file from templateCtrl+Alt+InsertCtrl+Alt+InsertGenerate codeAlt+InsertAlt+InsertMove code upCtrl+Shift+Alt+UpCtrl+Shift+Alt+UpMove code downCtrl+Shift+Alt+DownCtrl+Shift+Alt+DownMove code leftCtrl+Shift+Alt+LeftCtrl+Shift+Alt+LeftMove code rightCtrl+Shift+Alt+RightCtrl+Shift+Alt+RightExtend selectionCtrl+Alt+RightCtrl+WShrink selectionCtrl+Alt+LeftCtrl+Shift+WSelect containing declarationCtrl+Shift+[Ctrl+Shift+[Duplicate a line or selectionCtrl+DCtrl+DComment with line commentCtrl+Alt+/Ctrl+/Comment with block commentCtrl+Shift+/Ctrl+Shift+/
导航和搜索(Navigation and search)
CommandShortcut(Visual Studio)Shortcut
(IntelliJ IDEA/ReSharper 2.x)Go to typeCtrl+TCtrl+NGo To FileCtrl+Shift+TCtrl+Shift+NGo to file memberAlt+\Ctrl+F12Go to symbolShift+Alt+TCtrl+Shift+Alt+NNavigate ToAlt+`Ctrl+Shift+GGo to type of symbolCtrl+Shift+F11Ctrl+Shift+TGo to declarationF12Ctrl+BGo to implementationCtrl+F12Ctrl+Shift+Alt+BGo to base symbolsAlt+HomeCtrl+UGo to derived symbolsAlt+EndCtrl+Alt+BGo to usageShift+Alt+F12Ctrl+Alt+F7Go to containing declarationCtrl+[Ctrl+[Go to next member/tagAlt+DownAlt+DownGo to previous member/tagAlt+UpAlt+UpFind usagesShift+F12Alt+F7Find usages (advanced)Ctrl+Shift+Alt+F12Shift+Alt+F7Highlight usages in fileShift+Alt+F11Ctrl+Shift+F7Go to previous usageCtrl+Alt+PgUpCtrl+Alt+UpGo to next usageCtrl+Alt+PgDnCtrl+Alt+DownRemove highlighting of usagesEscEscView recent filesCtrl+,Ctrl+EView recent editsCtrl+Shift+,Ctrl+Shift+Alt+BackspaceGo to previous editCtrl+Shift+BackspaceCtrl+Shift+BackspaceGo to related filesCtrl+Alt+F7Ctrl+Shift+Alt+GView bookmarksCtrl+`Ctrl+`Go to a numbered bookmarkCtrl+[numeric key]Ctrl+[numeric key]Set/remove a numbered bookmarkCtrl+Shift+[numeric key]Ctrl+Shift+[numeric key]Find Results windowCtrl+Alt+F12Ctrl+Alt+UFile structureCtrl+Alt+FCtrl+F11To-do itemsCtrl+Alt+D Stack Trace ExplorerCtrl+E,TCtrl+Shift+ELocate in Solution ExplorerShift+Alt+LShift+Alt+LAnalyze referencesShift+Alt+YShift+Alt+Y
重构(Refactorings)
CommandShortcut(Visual Studio)Shortcut
(IntelliJ IDEA/ReSharper 2.x)Refactor thisCtrl+Shift+RCtrl+Shift+RRenameCtrl+R,RF2 or Shift+F6MoveCtrl+R,OF6Safe deleteCtrl+R,D or Alt+DelAlt+DelExtract methodCtrl+R,MCtrl+Alt+MIntroduce variableCtrl+R,VCtrl+Alt+VIntroduce fieldCtrl+R,FCtrl+Alt+DIntroduce parameterCtrl+R,PCtrl+Alt+PInline variable/method/fieldCtrl+R,ICtrl+Alt+NEncapsulate fieldCtrl+R,ECtrl+R,EChange signatureCtrl+R,SCtrl+F6
单元测试(Unit testing)
CommandShortcut(Visual Studio)Shortcut
(IntelliJ IDEA/ReSharper 2.x)Run unit testsCtrl+U,RCtrl+T,RDebug unit testsCtrl+U,DCtrl+T,DRun all tests in solutionCtrl+U,LCtrl+T,LRun current test sessionCtrl+U,YCtrl+T,YRepeat previous test runCtrl+U,YCtrl+T,YAppend to test sessionCtrl+U,ACtrl+T,ACreate new test sessionCtrl+U,NCtrl+T,NUnit Test ExplorerCtrl+Alt+UCtrl+Alt+TUnit Test SessionsCtrl+Alt+TCtrl+Alt+R
工具窗口(Tool windows)
CommandShortcut(Visual Studio)Shortcut
(IntelliJ IDEA/ReSharper 2.x)File structureCtrl+Alt+FCtrl+F11Find Results windowCtrl+Alt+F12Ctrl+Alt+UHierarchies windowCtrl+Alt+H Inspection Results windowCtrl+Alt+VCtrl+Alt+VStack Trace ExplorerCtrl+E,TCtrl+Shift+ETemplates Explorer windowAlt+R,PAlt+R,PTo-do itemsCtrl+Alt+D Unit Test ExplorerCtrl+Alt+UCtrl+Alt+TUnit Test SessionsCtrl+Alt+TCtrl+Alt+RClose recent toolCtrl+Shift+F4Ctrl+Shift+F4Activate recent toolCtrl+Alt+BackspaceCtrl+Alt+Backspace
- VS代码生成工具ReSharper配置快捷键
- VS代码生成工具ReSharper使用手册:配置快捷键
- VS代码生成工具ReSharper的代码检查配置
- ReSharper:著名的VS代码生成工具
- ReSharper:著名的VS代码生成工具
- ReSharper:著名的VS代码生成工具
- VS代码生成工具ReSharper使用手册:代码检查
- 对比两款VS代码生成工具 CodeRush&ReSharper
- VS代码生成工具ReSharper使用手册:颜色高亮
- VS2012 快捷键 VS RESHARPER 设置
- Resharper快捷键与VS冲突
- VS2013 快捷键 与 RESHARPER 冲突 1、VS设置工具--》选项--》环境--》键盘--》重置 2、RESHARPER -->Options--》Environment → K
- Resharper快捷键(VS的F6编译-F12默认设置) Resharper与VS快捷键
- Resharper 快捷键
- Resharper快捷键
- Resharper快捷键
- Resharper快捷键
- VS代码分析重构插件CodeRush和Resharper对比
- 正则表达式30分钟入门教程
- DB2 Federated Database 一例(类似于Oracle的DBLink)
- sqlserver利器SQLPrompt
- iOS编程技巧总结之语音篇(三)- OpenEars框架及其使用2
- JavaScript中引号的多重嵌套
- VS代码生成工具ReSharper配置快捷键
- Photosop的基础知识
- Qt creator中 “RTTI symbol not found for class 'QObject' ”问题的解决
- Ajax的核心组件
- Spring MVC学习(四)-------Controller接口控制器详解2
- 在icinga上安装check_mk
- Android Api Guid 之App Components 笔记
- java Math.round()
- 金蝶房地产行业解决方案