ClearScript Library
ClearScript Library
ClearScript Library Reference
Microsoft.ClearScript.V8
V8Runtime Class
V8Runtime Properties
CpuProfileSampleInterval Property
DocumentSettings Property
EnableInterruptPropagation Property
FormatCode Property
HeapSizeSampleInterval Property
HeapSizeViolationPolicy Property
MaxHeapSize Property
MaxStackUsage Property
Name Property

# V8RuntimeFormatCode Property

Enables or disables script code formatting.
Namespace: Microsoft.ClearScript.V8
Assembly: ClearScript.V8 (in ClearScript.V8.dll) Version: 7.5.0
Syntax
C#
VB
C++
F#
Copy

    public bool FormatCode { get; set; }

    Public Property FormatCode As Boolean
    	Get
    	Set

    public:
    property bool FormatCode {
    	bool get ();
    	void set (bool value);
    }

    member FormatCode : bool with get, set

#### Property Value

Boolean
Remarks
When this property is set to true, the V8 runtime may format script code before executing or compiling it. This is intended to facilitate interactive debugging. The formatting operation currently includes stripping leading and trailing blank lines and removing global indentation.
See Also

#### Reference

V8Runtime Class
Microsoft.ClearScript.V8 Namespace

Copyright © Microsoft Corporation. All rights reserved.

Send comments on this topic to Microsoft