无论如何要获取 Visual Studio C++自动完成参数列表?
特定软件的非常具体的问题,但我希望各位好心人能够提供帮助!
我在 header.h 文件中定义了一个类,该文件具有一些带有参数的方法声明,
class Lazy{
void complainForever(char * complaint, float forever = INFINITY);
};
然后我进入 Lazy.cpp 文件来定义该函数。这是一个伪延时摄影,展示了我有多懒。
void Lazy:: // <-- autocomplete kicks in, select method and hit enter
void Lazy::complainForever // <-- parameter list missing, completely defeating purpose
那时,我要么必须手动输入它,要么从 header.h 文件中复制/粘贴参数列表
问题是这样的!是否有键盘快捷键或任何方法可以让自动完成功能为我处理参数列表?
先感谢您!
Very specific issue with a specific piece of software, but I hope you fine folks can help!
I define a class in a header.h file that has a few method declarations that take parameters
class Lazy{
void complainForever(char * complaint, float forever = INFINITY);
};
Then I go into the Lazy.cpp file to define that function. Here is a psuedo timelapse of just how lazy I am.
void Lazy:: // <-- autocomplete kicks in, select method and hit enter
void Lazy::complainForever // <-- parameter list missing, completely defeating purpose
At that point, I either have to type it by hand, or copy/paste the parameter list from the header.h file
The question is this! Is there a keyboard shortcut or any method at all for having autocomplete take care of the parameter list for me?
Thank you in advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
为什么不尝试Visual Assist X。但它不是免费的。
Why don't you try Visual Assist X. It isn't free though.
在头文件中定义完类后,尝试更新 Intellisense。
可以通过重新加载项目/解决方案来更新智能感知。一旦您的智能感知更新,当您尝试实现类定义时 - 您将启用新定义的类的自动完成功能。这包括标头中定义的各个函数原型。
Once you are done defining the class in your header file, try to update Intellisense.
Updating intellisense can be achieved by reloading your project/solution. Once your intellisense is update, when you try to implement the class definition - you get the autocomplete feature on your newly defined class enabled. This includes the individual function prototypes as defined in the header.
显示智能感知的键盘快捷键是Ctrl + Space。
谢谢
Keyboard shortcut to display intellisense is Ctrl + Space.
Thanks