[clangd-dev] textDocument/onTypeFormatting and live indentation.

Alex L via clangd-dev clangd-dev at lists.llvm.org
Thu Sep 6 11:27:37 PDT 2018


I would like to implement clang-format aware newline indentation in Clangd.
It looks like Clangd only supports '}' trigger character for the
'onTypeFormatting' request. Would it make sense to extend it to support the
newline character, and to insert appropriate indentation instead of
reformatting the range in that case?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/clangd-dev/attachments/20180906/85a6c8cc/attachment.html>

More information about the clangd-dev mailing list