简体   繁体   English

如何构建自己的自定义代码片段?

[英]How can I build my own customzied code snippet?

I want to build my own code snippet for C# windows form application.我想为 C# windows 窗体应用程序构建我自己的代码片段。

It all over the internet concerning the ASP.NET MVC and none of it is talking about C# windows forms or is it the same process of dealing with XML.互联网上到处都是关于 ASP.NET MVC 的内容,但没有一个是在谈论 C# windows 窗体,或者是处理 XML 的相同过程。

Well thank you guys for reading my question and helping me about it and wish you good luck in your job or college.好吧,谢谢你们阅读我的问题并帮助我解决这个问题,并祝你工作或大学好运。

Visual Studio code snippets are platform-independent. Visual Studio 代码片段与平台无关。

You can use or create the same code snippets for any kind of project.您可以为任何类型的项目使用或创建相同的代码片段。

They are located in C:\\Program Files (x86)\\Microsoft Visual Studio 10.0\\VC#\\Snippets\\1033\\Visual C#它们位于 C:\\Program Files (x86)\\Microsoft Visual Studio 10.0\\VC#\\Snippets\\1033\\Visual C#

(The fileextensions are .snippet) (文件扩展名为 .snippet)

See "Creating and Using IntelliSense Code Snippets":请参阅“创建和使用 IntelliSense 代码片段”:

http://msdn.microsoft.com/en-us/library/ms165392(VS.100).aspx http://msdn.microsoft.com/en-us/library/ms165392(VS.100).aspx

Snippet Designer provides an easy way to access and modify snippets.片段设计器提供了一种访问和修改片段的简单方法。

The Snippet Explorer tool window is located under View -> Other Windows -> Snippet Explorer. Snippet Explorer 工具窗口位于 View -> Other Windows -> Snippet Explorer 下。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM