In This Article

CSharpCodeSnippetProvider Class

Provides a C# language code snippet provider that can manage the available code snippets and handle requests for display of IntelliPrompt code snippet sessions.

public class CSharpCodeSnippetProvider : CodeSnippetProvider, ICodeSnippetProvider, IOrderable, IKeyedObject, IEditorViewKeyInputEventSink, ITextViewLifecycleEventSink, ITextViewTaggerProvider
Inheritance:
object CodeSnippetProvider object
Implements:
ICodeSnippetProvider IOrderable IKeyedObject IEditorViewKeyInputEventSink ITextViewLifecycleEventSink ITextViewTaggerProvider

Constructors

CSharpCodeSnippetProvider()

Initializes a new instance of the CSharpCodeSnippetProvider class.

public CSharpCodeSnippetProvider()

Methods

GetPossibleShortcutSnapshotRange(TextSnapshotOffset)

Returns a possible code snippet shortcut TextSnapshotRange, located immediately before the specified TextSnapshotOffset.

protected override TextSnapshotRange GetPossibleShortcutSnapshotRange(TextSnapshotOffset snapshotOffset)
Parameter Type Description
snapshotOffset TextSnapshotOffset

The TextSnapshotOffset to examine.

Returns

TextSnapshotRange:

The TextSnapshotRange of the possible shortcut; or TextSnapshotRange.Deleted if there is no possible shortcut.

Remarks

Language implementations may wish to inherit this class and override this method to ensure the shortcut is not within a comment or other literal.

Inherited Members