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
boolIndicates 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
boolIndicates whether space should be inserted after comma delimiter.
insertSpaceAfterSemicolonInForStatements
boolIndicates whether space should be inserted after semicolon in the for statement.
insertSpaceBeforeAndAfterBinaryOperators
boolIndicates whether space should be inserted before and after binary operator.
insertSpaceAfterConstructor
boolIndicates whether space should be inserted after constructor.
insertSpaceAfterKeywordsInControlFlowStatements
boolIndicates whether space should be inserted after keywords in the flow control statement.
insertSpaceAfterFunctionKeywordForAnonymousFunctions
boolIndicates whether space should be inserted after function keyword.
insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis
boolIndicates whether space should be inserted after opening and before closing parenthesis.
insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets
boolIndicates whether space should be inserted after opening and before closing brackets.
insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces
boolIndicates whether space should be inserted after opening and before closing braces.
insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces
boolIndicates whether space should be inserted after opening and before closing template string braces.
insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces
boolIndicates whether space should be inserted after opening and before closing JSX expression braces.
insertSpaceAfterTypeAssertion
boolIndicates whether space should be inserted after type assertion.
insertSpaceBeforeFunctionParenthesis
boolIndicates whether space should be inserted before function parenthesis.
placeOpenBraceOnNewLineForFunctions
boolIndicates whether open brace should be inserted on new line for functions.
placeOpenBraceOnNewLineForControlBlocks
boolIndicates whether open brace should be inserted on new line for control blocks.
insertSpaceBeforeTypeAnnotation
boolIndicates whether space should be inserted before type annotation.
baseIndentSize
intNumber of space characters for base indentation.
indentSize
intNumber of space characters for indentation.
tabSize
intNumber of tab characters for indentation.
newLineCharacter
stringCharacter describes new line.
convertTabsToSpaces
boolIndicates whether formatting should convert tabs to spaces.
indentStyle
intStyle of indentation.