在Visual Studio 2013中向intellisense添加自定义项 [英] Adding custom items to intellisense in Visual studio 2013
问题描述
我有一些要求使intellisense可自定义。有可能吗?
我想在按下'。'时触发的下拉列表中添加一个自定义项目。此外,任何有关代码完成的信息都将非常受欢迎。
基本上,我正在寻找类似键入for后,双TAB按下将产生以下代码:
for(int i = 0; i< length; i ++)
$
}。
;
我们可以使用自定义项目来插入不同的代码片段吗?
提前致谢!
问候,
Karthik Bhat
Hi,
I have some requirements in making the intellisense customizable. Is it possible?
I want to add a custom item into the drop down that gets triggered when '.' is pressed. Also any information regarding code completion would be very much appreciated.
Basically, i'm looking for something like " A double TAB press after typing "for" would generate the following code:
for (int i = 0; i < length; i++)
{
}.
;
Can we have custom items to insert different code snippets as above?
Thanks in advance!
Regards,
Karthik Bhat
推荐答案
我们在公司创建自己的代码片段....:
https://msdn.microsoft.com/en-us/library/ms165392.aspx [ ^ ]
创建代码段:
https://msdn.microsoft.com/en-us/library/ms165394.aspx [<一个HREF =https://msdn.microsoft.com/en-us/library/ms165394.as pxtarget =_ blanktitle =新窗口> ^ ]
We create our own code snippets in the company....:
https://msdn.microsoft.com/en-us/library/ms165392.aspx[^]
Create snippet:
https://msdn.microsoft.com/en-us/library/ms165394.aspx[^]
这篇关于在Visual Studio 2013中向intellisense添加自定义项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!