Share via


ProvideLanguageServiceAttribute.CodeSense Property

Determines if the language service supports IntelliSense operations.

Namespace:  Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell.11.0 (in Microsoft.VisualStudio.Shell.11.0.dll)

Syntax

'Declaration
Public Property CodeSense As Boolean
public bool CodeSense { get; set; }
public:
property bool CodeSense {
    bool get ();
    void set (bool value);
}
member CodeSense : bool with get, set
function get CodeSense () : boolean 
function set CodeSense (value : boolean)

Property Value

Type: System.Boolean
Returns true if the language service supports IntelliSense operations; otherwise, returns false.

Remarks

IntelliSense operations include Complete Word, List Members, Parameter Information, Quick Info and brace matching. If the language service supports any one or more of the IntelliSense operations, the CodeSense property must be set to true.

This property is specific to the managed package framework (MPF).

The default is true when the corresponding registry entry is accessed through the LanguagePreferences class.

The registry entry looks like this:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\[X.Y]\Languages\Language Services\
  [Language Name]\
    CodeSense = reg_dword: 0x00000001

Examples

    [ProvideLanguageService(typeof(MyLanguageService),           // Required
                            MyConstants.languageName,            // Required
                            MyConstants.languageNameResourceID,  // Required
        // Optional language service properties
        CodeSense = true,  // IntelliSense operations supported
                           )]

.NET Framework Security

See Also

Reference

ProvideLanguageServiceAttribute Class

Microsoft.VisualStudio.Shell Namespace