ProvideLanguageServiceAttribute.CodeSense ProvideLanguageServiceAttribute.CodeSense ProvideLanguageServiceAttribute.CodeSense Property


Determines if the language service supports IntelliSense operations.

public bool CodeSense { get; set; }
member this.CodeSense : bool with get, set
Public Property CodeSense As Boolean
Property Value

Returns true if the language service supports IntelliSense operations; otherwise, returns false.


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


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  

Applies to