Visual Studio C++ 2010 中的自动创建实现 [英] Auto-create implementation in Visual Studio C++ 2010
问题描述
我想知道是否有办法编写完整的头文件并让 Visual Studio 创建一个适当的实现文件来保存所有额外的工作.我觉得他们一定是想到了,因为这是一件很简单的事情,但我在任何地方都找不到.
I was wondering if there was a way to write a complete header file and have Visual Studio create an appropriate implementation file to save all of that extra work. I feel like they must have thought of it as it's such a simple thing but I can't find it anywhere.
推荐答案
CodeWiz 是一个 免费 Visual Studio 插件包含许多功能.我在 Visual 2005 上经常使用它.对我来说最好的生产力提升来自快速实现方法的键序列:
CodeWiz is a free Visual Studio addin containing lots of features. I have used it a lot on Visual 2005. The best productivity boost for me came from the fast implement method key sequence :
- 在 .h 文件中选择要实现的方法
- CTRL-5 (CodeWiz2.CopyMembers)
- CTRL-1(CodeWiz2.FriendFile:在 .h 和 .cpp 之间导航,所以这里转到 .cpp)
- CTRL-6 (CodeWiz2.PasteMembers) : 将方法实现为空
远非理想,但我在 Visual Studio 2012 中怀念它...
Far from ideal but I miss it on visual studio 2012...
这篇关于Visual Studio C++ 2010 中的自动创建实现的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!