ReSharper3.1 for Visual Studio 2008 使用经验分享
ReSharper3.1 for Visual Studio 2008 使用经验分享 Find File ctrl n (这种功能没有不行) Advanced Find Usage shift alt F7 Change Signature ctrl F6 Rename shift F6 (推荐, 这是一种安全的该名方式,Resharper会做相应引用的修改) Complete Code ctrl space (推荐, Resharper会自动判断当前适当的输入) Explore Stack Trace ctrl shift E Extract Method ctrl alt M File Structure Popup ctrl F12 (注意在Popup Window里面还可以继续输入想要找的方法名或者字段名) Find Usage alt F7 Go to Declaration ctrl B Go to Inheritors ctrl alt B (找到类名的声明处使用这个快捷键可以找到所有继承和实现) Go to Type Declaration ctrl shift T Highlight Usages ctrl shift F7 Insert Template ctrl J (推荐使用,尤其是在写一些比较重复的代码时) Optimize Using ctrl alt O (自动去除不必要的using) Reformat Code ctrl alt F (推荐, 有利于团队代码的风格一致, 自动代码整理,包括换行和格式, 需要在Resharper->Options->Code Style中设置) Smart Block Comment ctrl shift / Smart Complete Code ctrl shift space Surround ctrl alt J (推荐, 需要在Resharper->Options->Surround with 里面配置) Enter Name Complete Code ctrl alt space 此外有一些功能比如使用一个类, 但是还没有在本文件中被引入,Resharper会自动提示用alt enter引入(前提是在Resharper->Options->Highlighting里面必须选中Enable Highlighting, 当然这个功能有时会使VS Studio变得有点慢,但是又却是好用,有点为难…).
用这个插件编程的速度提高了很多,同时也不容易出错的了(出错会有提示的,不过现在很少用this. 和 base.的了.....还有好多的命名空间的路径都会被精简掉)
大家先去下载:
JetBrains ReSharper for VS2005 v3.1 注册版
http://www.3ddown.com/soft/23528.htm
JetBrains Resharper for VS2008 v3.1 注册版
http://www.3ddown.com/soft/32060.htm
快捷键
待续............