visual-studio 对 C++ 的良好重构支持
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/16167/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Good refactoring support for C++
提问by Huppie
The Visual Studio refactoring support for C# is quite good nowadays (though not half as good as some Java IDE's I've seen already) but I'm really missing C++ support.
现在,Visual Studio 对 C# 的重构支持非常好(虽然不如我见过的某些 Java IDE 的一半好),但我真的缺少 C++ 支持。
I have seen Refactor!and am currently trying it out, but maybe one of you guys know a better tool or plugin?
我见过重构!并且目前正在尝试它,但也许你们中的一个人知道更好的工具或插件?
我一直在与 Visual Assist XVisual Assist X现在一两个星期了,完全上瘾了。谢谢你的提示,我会努力说服我的老板也让我获得工作许可证。
自从 Visual Assist X 在几次特定的重构后一直搞砸我的 Visual Studio 以来,我一直在寻找错误几天,我(和客户支持)花了一周的时间来寻找,但现在让我们说 Visual Assist X 不是一个很好的结合 ClipXClipX。
回答by bradtgmurray
Visual Assist X by Whole Tomato software is not free, but it's absolutely worth the money if you use Visual Studio for C++.
Whole Tomato 软件的 Visual Assist X 不是免费的,但如果您使用 Visual Studio for C++,它绝对物有所值。
回答by Suma
I have tried Refactor!, as its features seemed promising, as did its testing with a simple testing project, but it failed to work with our real project at all - a lots of CPU activity, sometimes even frozen VS IDE, Refactoring UI not appearing at all for most of the code.
我已经尝试过重构!,因为它的功能看起来很有希望,它的测试也与一个简单的测试项目一样,但它根本无法与我们的真实项目一起使用 - 大量 CPU 活动,有时甚至冻结 VS IDE,未出现重构 UI对于大部分代码来说。
We are using Visual Assist X instead. While it does not offer than many refactorings and it seems to me somewhat more complicated to use, it works.
我们正在使用 Visual Assist X。虽然它不提供许多重构,而且在我看来使用起来有些复杂,但它确实有效。
回答by Minyu
I didn't find this post and created another one. There is a great response about VS2010 there.
我没有找到这篇文章并创建了另一个。那里对 VS2010 的反响很好。
If you are like me, who wishes VS2010 comes with C++ refactoring support, please visit my Microsoft Connect ticketand vote for it. Hopefully with enough votes, MS may give it a higher priority.
如果您像我一样希望 VS2010 支持 C++ 重构,请访问我的Microsoft Connect 票证并为其投票。希望有足够的选票,MS 可以给予它更高的优先级。
回答by Nickolay
Mozilla's Taras Glek worked the last year or two on C++ analysis and code rewriting tools. His blog is at http://blog.mozilla.com/tglek/, you can find links to the tools they created there. They are of course free and open-source. No GUI, but I thought I'd link it in case it's interesting to anybody.
Mozilla 的 Taras Glek 过去一两年致力于 C++ 分析和代码重写工具。他的博客位于http://blog.mozilla.com/tglek/,您可以在那里找到他们创建的工具的链接。它们当然是免费和开源的。没有 GUI,但我想我会链接它以防任何人感兴趣。
回答by Greg Rogers
If you like emacs then Xrefactoryis a good choice.
如果你喜欢 emacs,那么Xrefactory是一个不错的选择。
回答by Pat Notz
I'm not familiar with the tools you mentioned but the refactoring support for C++ in Eclipse 3.4is getting pretty useful and growing.
我不熟悉您提到的工具,但是Eclipse 3.4 中对 C++ 的重构支持变得非常有用并且不断增长。

