LanguagePreferences.EnableFormatSelection Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets whether or not code can be formatted.
public:
property bool EnableFormatSelection { bool get(); void set(bool value); };
public:
property bool EnableFormatSelection { bool get(); void set(bool value); };
public bool EnableFormatSelection { get; set; }
member this.EnableFormatSelection : bool with get, set
Public Property EnableFormatSelection As Boolean
Property Value
true
if the code can be formatted, otherwise false
= no automatic formatting.
Remarks
This property applies to both selected and unselected text. The code can be formatted when the user selects the command Format Document or Format Selection. Code can also be formatted as part of code snippet expansion or triggered dynamically as the user types certain characters.
This property is associated with the registry entry EnableFormatSelection
.
In the base method, even though this property can be set, the value is not written back to the registry.