让我们在VS 2005 beta2的C#环境下也能使用Refactor! Pro

如果默认安装DevExpress公司的重构利器Refactor! Pro的话,在VS 2005 beta2 的C#代码环境下是找不到其所提供的Refactor选项的,因为微软默认的这个选项覆盖了它。

如果同时你已经安装了VS 2003,这很简单

首先打开2003下的devexpress菜单,并选择到shortcuts。点击那个查找图标,查找command为RefactorShowPopup的命令,如果能查找到,设置一个快捷键,比如ctrl+',那么保存切换到VS 2005使用此快捷键就会弹出Refactor! Pro的重构菜单选项。如果没有查到,新建一个快捷键,将command等设定如图,保存并确保你能搜索到你设置的快捷键;如果搜索到,那么恭喜你大功告成了。




但是如果你没有2003呢?

> 1. Close VS.
> 2. Copy the attached file to this folder:
>
> {SysDrive}:\Documents and Settings\{Profile}\Application Data\CodeRush for
> VS .NET\1.1\Settings\IDE
>
> {SysDrive} = your boot drive (typically C)
> {Profile}=user name you're logged in as
>
> 3. Start VS.
>
> This file adds two shortcuts --
>
> Ctrl+Alt+Shift+O = bring up the DXCore Options dialog. This will allow you
> to configure CodeRush and Refactor! Pro in VS 2005.
> Ctrl+Alt+Shift+A = bring up the About box
>
> 4. Once you have access to the options dialog, you can change these key
> bindings if you like on the IDE\Shortcuts options page.


这是官方给出的方法,我试过但没成功,不过可以作为一个参考。


下面是在2005中使用Refactor! Pro的截图,比微软自身提供的那么点东西强大的多^^



PS:使用了这么久才发现devexpress给VS.NET这个IDE提供了许多非常好用的小工具以及一个可供程序员自由扩充的内核。这些以后有空慢慢介绍。

posted @ 2005-09-15 23:06    阅读(1542)  评论(1编辑  收藏  举报