Auto-create implementation in Visual Studio C++ 20

2019-07-04 06:55发布

This question already has an answer here:

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.

1条回答
啃猪蹄的小仙女
2楼-- · 2019-07-04 07:27

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 :

  1. On the .h file select methods you want to implement
  2. CTRL-5 (CodeWiz2.CopyMembers)
  3. CTRL-1 (CodeWiz2.FriendFile : navigate between .h and .cpp so here go to .cpp)
  4. CTRL-6 (CodeWiz2.PasteMembers) : Will implements methods as empty

Far from ideal but I miss it on visual studio 2012...

查看更多
登录 后发表回答