为什么Visual C ++缺乏重构功能? [英] Why is Visual C++ lacking refactor functionality?

查看:130
本文介绍了为什么Visual C ++缺乏重构功能?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Visual Studio 2008中使用C ++编程时,为什么在使用C#时,在重构菜单中看不到任何功能?

When programming in C++ in Visual Studio 2008, why is there no functionality like that seen in the refactor menu when using C#?

/ strong>不断,你真的想念它,当它不在那里。我相信你可以得到提供这个插件,但为什么不使用C ++时集成到IDE?这是因为C ++必须解析的方式有些困难吗?

I use Rename constantly and you really miss it when it's not there. I'm sure you can get plugins that offer this, but why isn't it integrated in to the IDE when using C++? Is this due to some gotcha in the way that C++ must be parsed?

推荐答案

C ++的语法和语义使它难以置信的困难来正确实现重构功能。它可以实现一些相对简单的方法来覆盖90%的情况,但在其余10%的情况下,简单的解决方案将通过改变你从来不想改变的事情,可怕的破坏你的代码。

The syntax and semantics of C++ make it incredibly difficult to correctly implement refactoring functionality. It's possible to implement something relatively simple to cover 90% of the cases, but in the remaining 10% of cases that simple solution will horribly break your code by changing things you never wanted to change.

阅读 http://yosefk.com/c++fqa/defective.html#缺陷-8,用于简要讨论C ++中任何重构代码所遇到的困难。

Read http://yosefk.com/c++fqa/defective.html#defect-8 for a brief discussion of the difficulties that any refactoring code in C++ has to deal with.

Microsoft显然决定对这个特性进行研究对于C ++,由第三方开发者来做他们能做的。

Microsoft has evidently decided to punt on this particular feature for C++, leaving it up to third-party developers to do what they can.

这篇关于为什么Visual C ++缺乏重构功能?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆