VS 2008 Express中的代码完成 [英] Code completion in VS 2008 Express

查看:110
本文介绍了VS 2008 Express中的代码完成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



有人知道在VS 2008 Express版本的代码完成功能中是否可以编辑或添加条目"?换句话说,例如,现在当我键入"Try"并按Tab时,整个try catch语句就已经为我准备好了,但是我想vs写

Hi,

Does anyone know whether it is possible to edit or add "entries" in the code completion functionality in VS 2008 Express editions ?

In other words, for example, now when I type "Try" and press tab the whole try catch statement is written ready for me, but I would like to have vs write

<br />Try<br /><br />Catch ex as Exception<br /> MsgBox(Ex.ToString) ''being the extra bit<br />End Try<br />



PS我可能用错了术语.

最诚挚的问候,

Johan



P.S. I may have the terminology wrong.

Best regards,

Johan

推荐答案

它们被称为代码段".不确定VS Express,但请查看工具"->代码段管理器".如果不存在,请尝试右键单击工具栏->自定义命令"标签->工具类别"->代码段管理器""命令,然后将其拖动到所需的菜单中.

如果找不到它,我假设VS express不支持它.

在以下文件夹中查找:
我的文档\ Visual Studio 2008 \代码片段\ Visual C#\我的代码段\"

" C:\ Program Files \ Microsoft Visual Studio 9.0 \ VC#\ Snippets \ 1033 \ Visual C#"

从VS随附的主要副本中复制,然后将修改后的内容放置在我的代码段"文件夹中.

They are called "code snippets". Not sure about VS express, but look under tools->code snippet manager. If it''s not there, try right click on the toolbar ->customise-commands tab->tools category->"code snippets manager" command, and drag it into what ever menu you want.

If you can''t find it, I''m assuming VS express doesn''t support it.

Look in these folders:
"My Documents\Visual Studio 2008\Code Snippets\Visual C#\My Code Snippets\"

"C:\Program Files\Microsoft Visual Studio 9.0\VC#\Snippets\1033\Visual C#"

Copy from the main ones supplied with VS, and place your modified one in the my code snippets folder.


这篇关于VS 2008 Express中的代码完成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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