Share via


IBraceCompletionContext.OnReturn(IBraceCompletionSession) Method

Definition

Called by the editor when return is pressed while both braces are on the same line and no typing has occurred in the session.

public:
 void OnReturn(Microsoft::VisualStudio::Text::BraceCompletion::IBraceCompletionSession ^ session);
public:
 void OnReturn(Microsoft::VisualStudio::Text::BraceCompletion::IBraceCompletionSession ^ session);
void OnReturn(Microsoft::VisualStudio::Text::BraceCompletion::IBraceCompletionSession const & session);
public void OnReturn (Microsoft.VisualStudio.Text.BraceCompletion.IBraceCompletionSession session);
abstract member OnReturn : Microsoft.VisualStudio.Text.BraceCompletion.IBraceCompletionSession -> unit
Public Sub OnReturn (session As IBraceCompletionSession)

Parameters

session
IBraceCompletionSession

Default brace completion session

Remarks

Called after the newline has been inserted into the buffer.

Applies to