Constructor FormatCodeOptions
- Namespace
- Alternet.Common.TypeScript.Types
- Assembly
- Alternet.Common.TypeScript.v10.dll
FormatCodeOptions(bool)
Initializes a new instance of the FormatCodeOptions class with specified parameter.
public FormatCodeOptions(bool insertSpaceAfterCommaDelimiter)
Parameters
insertSpaceAfterCommaDelimiterboolIndicates 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
insertSpaceAfterCommaDelimiterboolIndicates whether space should be inserted after comma delimiter.
insertSpaceAfterSemicolonInForStatementsboolIndicates whether space should be inserted after semicolon in the for statement.
insertSpaceBeforeAndAfterBinaryOperatorsboolIndicates whether space should be inserted before and after binary operator.
insertSpaceAfterConstructorboolIndicates whether space should be inserted after constructor.
insertSpaceAfterKeywordsInControlFlowStatementsboolIndicates whether space should be inserted after keywords in the flow control statement.
insertSpaceAfterFunctionKeywordForAnonymousFunctionsboolIndicates whether space should be inserted after function keyword.
insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesisboolIndicates whether space should be inserted after opening and before closing parenthesis.
insertSpaceAfterOpeningAndBeforeClosingNonemptyBracketsboolIndicates whether space should be inserted after opening and before closing brackets.
insertSpaceAfterOpeningAndBeforeClosingNonemptyBracesboolIndicates whether space should be inserted after opening and before closing braces.
insertSpaceAfterOpeningAndBeforeClosingTemplateStringBracesboolIndicates whether space should be inserted after opening and before closing template string braces.
insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBracesboolIndicates whether space should be inserted after opening and before closing JSX expression braces.
insertSpaceAfterTypeAssertionboolIndicates whether space should be inserted after type assertion.
insertSpaceBeforeFunctionParenthesisboolIndicates whether space should be inserted before function parenthesis.
placeOpenBraceOnNewLineForFunctionsboolIndicates whether open brace should be inserted on new line for functions.
placeOpenBraceOnNewLineForControlBlocksboolIndicates whether open brace should be inserted on new line for control blocks.
insertSpaceBeforeTypeAnnotationboolIndicates whether space should be inserted before type annotation.
baseIndentSizeintNumber of space characters for base indentation.
indentSizeintNumber of space characters for indentation.
tabSizeintNumber of tab characters for indentation.
newLineCharacterstringCharacter describes new line.
convertTabsToSpacesboolIndicates whether formatting should convert tabs to spaces.
indentStyleintStyle of indentation.