formatter 编程语言的格式化工具, 它比LSP的设置优先级高. 格式化工具能从标准输入流中获得源文件,向标准输出流写出格式化的文件 soft-wrap editor.softwrap text-width 行的最大长度(默认值是editor.text-width),使用命令:reflow 刷新软换行,如果 soft-wrap.wrap-at-text-width 已经设置 workspace-lsp-roots 工程中...
嗨,我正在使用 Helix 文本编辑器,我在 C++ 中的缩进只有 2 个空格,我希望它们是 4 个。我不知道如何让它工作 我一直在 languages.toml 文件中添加缩进,正如文档告诉我的那样: [[language]] name = "cpp" auto-format = true formatter = {command = 'clang-format', args= ["--style=Google"]} ...