Class FormattingOptions
java.lang.Object
org.graalvm.tools.lsp.server.types.JSONBase
org.graalvm.tools.lsp.server.types.FormattingOptions
Value-object describing what options formatting should use.
-
Method Summary
Modifier and TypeMethodDescriptionstatic FormattingOptionscreate(int tabSize, boolean insertSpaces) Creates a new FormattingOptions literal.booleanSignature for further properties.Insert a newline character at the end of the file if one does not exist.intSize of a tab in spaces.Trim all newlines after the final newline at the end of the file.Trim trailing whitespaces on a line.inthashCode()booleanPrefer spaces over tabs.setInsertFinalNewline(Boolean insertFinalNewline) setInsertSpaces(boolean insertSpaces) setTabSize(int tabSize) setTrimFinalNewlines(Boolean trimFinalNewlines) setTrimTrailingWhitespace(Boolean trimTrailingWhitespace)
-
Method Details
-
getTabSize
public int getTabSize()Size of a tab in spaces. -
setTabSize
-
isInsertSpaces
public boolean isInsertSpaces()Prefer spaces over tabs. -
setInsertSpaces
-
getTrimTrailingWhitespace
Trim trailing whitespaces on a line.- Since:
- 3.15.0
-
setTrimTrailingWhitespace
-
getInsertFinalNewline
Insert a newline character at the end of the file if one does not exist.- Since:
- 3.15.0
-
setInsertFinalNewline
-
getTrimFinalNewlines
Trim all newlines after the final newline at the end of the file.- Since:
- 3.15.0
-
setTrimFinalNewlines
-
get
Signature for further properties. -
set
-
equals
-
hashCode
public int hashCode() -
create
Creates a new FormattingOptions literal.
-