We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
var options = new Hashtable<String, String>() options.put("org.eclipse.jdt.core.compiler.codegen.targetPlatform", "1.8") options.put("org.eclipse.jdt.core.compiler.compliance", "1.8") options.put("org.eclipse.jdt.core.compiler.source", "1.8") var codeFormatter = ToolFactory.createCodeFormatter(options) var textEdit = codeFormatter.format(CodeFormatter.K_COMPILATION_UNIT, result, 0, result.length(), 0, "");
.format is for some reason unavailable except on deprecated createCodeFormatter() method.
.format
createCodeFormatter()
The text was updated successfully, but these errors were encountered:
No branches or pull requests
.format
is for some reason unavailable except on deprecatedcreateCodeFormatter()
method.The text was updated successfully, but these errors were encountered: