Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

ISmartIndentationService Interface

Determines automatic indentation when the enter key is pressed or when navigating to an empty line.

Namespace:  Microsoft.VisualStudio.Text.Editor
Assembly:  Microsoft.VisualStudio.Text.UI (in Microsoft.VisualStudio.Text.UI.dll)

public interface ISmartIndentationService

The ISmartIndentationService type exposes the following members.

Public methodGetDesiredIndentationGets the desired indentation of an ITextSnapshotLine as displayed in ITextView.

This is a MEF component part, and should be imported as follows:

[Import] ISmartIndentationService selector = null;

This service consumes ISmartIndentProvider to determine how to perform the indentation.

© 2015 Microsoft