This documentation is archived and is not being maintained.

ToolTip Element (IntelliSense Code Snippets)

Describes the expected value and usage of a literal or object in a code snippet, which Visual Studio displays in a ToolTip when it inserts the code snippet into a project.

    ToolTip description

The following sections describe attributes, child elements, and parent elements.



Child Elements


Parent Elements




Defines the literal fields of the code snippet that you can edit.


Defines the object fields of the code snippet that you can edit.

A text value is required.

This text specifies the ToolTip description to be associated with the object or literal in the code snippet.

The ToolTip text is displayed when the mouse hovers over the literal or object after the code snippet has been inserted.

The following example shows how to declare ToolTip elements for Literal and Object elements.

<CodeSnippets xmlns="">
    <CodeSnippet Format="1.0.0">
            <!-- Insert Header information here. -->
                    <ToolTip>Replace with a SQL connection string.</ToolTip>
                    <Default>"SQL connection string"</Default>
                    <ToolTip>Replace with a connection object in your application.</ToolTip>
            <Code Language="CSharp">
                <!-- Insert code here. -->