Share via


程式碼片段結構描述參考

提供所有 IntelliSense 程式碼片段之 XML 結構描述項目的表格,其中包含可用的屬性和子項目。

IntelliSense 程式碼片段是預先設計的程式碼片段,可用以插入使用 Visual Studio 的應用程式。 因為這些程式碼片段可以降低輸入重複程式碼或搜尋範例所花費的時間,因而提高產能。 您可以使用 IntelliSense 程式碼片段 XML 結構描述,建立自己的 Visual Basic、Visual C# 或 XML 程式碼片段,並新增至 Visual Studio 已包含的程式碼片段中。

IntelliSense 程式碼片段結構描述項目

下表會列出所有 IntelliSense 程式碼片段 XML 結構描述項目,以及其子項目和屬性 (Attribute)。

項目

子項目

屬性

Assembly

--

--

Author

--

--

Code

--

Delimiter

Kind

Language

CodeSnippet

Header

Snippet

Format

CodeSnippets

CodeSnippets

--

Declarations

Literal

Object

--

Default

--

--

Description

--

--

Function

--

--

Header

Author

Description

HelpUrl

Keywords

Shortcut

SnippetTypes

Title

--

HelpUrl

--

--

ID

--

--

Import

Namespace

--

Imports

Import

--

Keyword

--

--

Keywords

Keyword

--

Literal

Default

Function

ID

Type

ToolTip

Editable

Namespace

--

--

Object

Default

Function

ID

Type

ToolTip

Editable

Reference

Assembly

URL

--

References

Reference

--

Shortcut

--

--

Snippet

Code

Declarations

Imports

References

--

SnippetType

--

--

SnippetTypes

SnippetType

--

Title

--

--

ToolTip

--

--

Type

--

--

URL

--

--

請參閱

參考

建立和使用 IntelliSense 程式碼片段

其他資源

Visual Studio XML 參考