Table of Contents

Constructor FormatCodeOptions

Namespace
Alternet.Common.TypeScript.Types
Assembly
Alternet.Common.TypeScript.v9.dll

FormatCodeOptions(bool)

Initializes a new instance of the FormatCodeOptions class with specified parameter.

public FormatCodeOptions(bool insertSpaceAfterCommaDelimiter)

Parameters

insertSpaceAfterCommaDelimiter bool

Indicates whether space should be inserted after comma delimiter.

FormatCodeOptions(bool, bool, bool, bool, bool, bool, bool, bool, bool, bool, bool, bool, bool, bool, bool, bool, int, int, int, string, bool, int)

Initializes a new instance of the FormatCodeOptions class with specified parameters.

public FormatCodeOptions(bool insertSpaceAfterCommaDelimiter, bool insertSpaceAfterSemicolonInForStatements, bool insertSpaceBeforeAndAfterBinaryOperators, bool insertSpaceAfterConstructor, bool insertSpaceAfterKeywordsInControlFlowStatements, bool insertSpaceAfterFunctionKeywordForAnonymousFunctions, bool insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis, bool insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets, bool insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces, bool insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces, bool insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces, bool insertSpaceAfterTypeAssertion, bool insertSpaceBeforeFunctionParenthesis, bool placeOpenBraceOnNewLineForFunctions, bool placeOpenBraceOnNewLineForControlBlocks, bool insertSpaceBeforeTypeAnnotation, int baseIndentSize, int indentSize, int tabSize, string newLineCharacter, bool convertTabsToSpaces, int indentStyle)

Parameters

insertSpaceAfterCommaDelimiter bool

Indicates whether space should be inserted after comma delimiter.

insertSpaceAfterSemicolonInForStatements bool

Indicates whether space should be inserted after semicolon in the for statement.

insertSpaceBeforeAndAfterBinaryOperators bool

Indicates whether space should be inserted before and after binary operator.

insertSpaceAfterConstructor bool

Indicates whether space should be inserted after constructor.

insertSpaceAfterKeywordsInControlFlowStatements bool

Indicates whether space should be inserted after keywords in the flow control statement.

insertSpaceAfterFunctionKeywordForAnonymousFunctions bool

Indicates whether space should be inserted after function keyword.

insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis bool

Indicates whether space should be inserted after opening and before closing parenthesis.

insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets bool

Indicates whether space should be inserted after opening and before closing brackets.

insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces bool

Indicates whether space should be inserted after opening and before closing braces.

insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces bool

Indicates whether space should be inserted after opening and before closing template string braces.

insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces bool

Indicates whether space should be inserted after opening and before closing JSX expression braces.

insertSpaceAfterTypeAssertion bool

Indicates whether space should be inserted after type assertion.

insertSpaceBeforeFunctionParenthesis bool

Indicates whether space should be inserted before function parenthesis.

placeOpenBraceOnNewLineForFunctions bool

Indicates whether open brace should be inserted on new line for functions.

placeOpenBraceOnNewLineForControlBlocks bool

Indicates whether open brace should be inserted on new line for control blocks.

insertSpaceBeforeTypeAnnotation bool

Indicates whether space should be inserted before type annotation.

baseIndentSize int

Number of space characters for base indentation.

indentSize int

Number of space characters for indentation.

tabSize int

Number of tab characters for indentation.

newLineCharacter string

Character describes new line.

convertTabsToSpaces bool

Indicates whether formatting should convert tabs to spaces.

indentStyle int

Style of indentation.