Visual Studio 2010加载项 [英] Visual studio 2010 Add-in
本文介绍了Visual Studio 2010加载项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
例如,我正在尝试在IDE中选择行之后和之前添加用于添加文本的加载项,例如我在IDE中具有sql satement.
从表中选择*
其中代码= 1
按代码订购
我想在选定的行之前添加文本(_str),在选定的行之后添加文本(crlf)
_str =从表中选择*" crlf
_str ="where code = 1" crlf
_str =按代码排序" crlf
I am trying to make add-in for add text after and before selected line in IDE for example i have sql satement in IDE.
select * from table
where code=1
order by code
i want to add text(_str) before selected line and text(crlf) after selected line
_str="select * from table" crlf
_str="where code=1 " crlf
_str="order by code " crlf
推荐答案
tr="select * from table" &_
"where code=1 " &_
"order by code "
排序
与&和_一起可以轻松地做到这一点.
With & and _ together you can do this easily.
这篇关于Visual Studio 2010加载项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文