关于保存的代码动作
作者: archseer创建于 2022年1月23日更新于 2026年9月17日
标签C-enhancementE-easyA-language-server
在https://GitHub.com/helix-editor/helix/discussions/1540上讨论
原文由kevinsjoberg 2022年1月19日 Helix目前支持运行[Code Actions](https://microsoft.GitHub.io/language-server-protocol/ specifications/ specification-current/#textDocument code Actions),通过按下QXSpace a'. 一些语言服务器还支持运行关于保存的特定代码动作,例如TypeScript-language-server和gopls.
更可取的是,我们扩展了语言服务器配置,允许指定代码动作运行在保存上. 动作本身会同步运行, 类似于我们已经做的自动格式化。
(中文(简体) )内容来源: helix-editor/helix