自定义Intellisense提示? [英] Customized Intellisense prompt?

查看:71
本文介绍了自定义Intellisense提示?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,


是否可以针对特定类型的模板参数为C ++模板函数提供自定义智能感知提示?例如,我有一个通用工厂函数:



 template< typename T,typename .. .Args> 
auto CreateSomething(Args ... args);



我有一个以下形式的对象:

 class Object 
{
Object(int arg1,float arg2);
};


当我执行以下操作时,可以让intellisense提示Object构造函数的参数:

 CreateSomething< Object>(//此时intellisense将提示输入2个参数... 


谢谢。





解决方案

你好Jason Wyx,


欢迎来到MSDN论坛。




请参考以下文件大约
Visual C ++ Intellisense 以获取更多信息。


https://docs.microsoft.com/en-us / visualstudio / ide / visual-cpp-intellisense


问候,


Judyzh


Hello,

Is it possible to have customized intellisense prompt for C++ template functions for specific types of template arguments? For example, I have a generic factory function:

template<typename T, typename ... Args>
auto CreateSomething(Args ... args);


And I have an object of the form:

class Object
{
  Object(int arg1, float arg2);
};

Is is possible to have intellisense prompt the parameters of Object constructor when I do something like:

CreateSomething<Object>( // At this point the intellisense will prompt for the 2 parameters ...

Thanks.


解决方案

Hi Jason Wyx,

Welcome to the MSDN forum.

Please refer to following document about Visual C++ Intellisense to get more information.

https://docs.microsoft.com/en-us/visualstudio/ide/visual-cpp-intellisense

Regards,

Judyzh


这篇关于自定义Intellisense提示?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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