提示当前函数的签名

设置里有两个选项,默认是 false。我建议只打开 show_signature_help_after_edits,因为 auto_signature_help 目前 Zed 0.209.7 还有些 Bug。比如当处在 JavaScript new Promise(() => { /* here */ }) 的括号内,每一行都会提示 Promise 的函数签名,非常恼人。

// Show method signatures inside parentheses
"auto_signature_help": false,
// Whether to show the signature help after completion or a bracket pair inserted.
// If `auto_signature_help` is enabled, this setting will be treated as enabled also.
"show_signature_help_after_edits": false,

另外即便都 false,也可以随时使用 editor::ShowSignatureHelp 来展示当前位置的签名,默认绑定在 Ctrl+ICtrl+s in Vim)

切换文件换行符

当前 Zed 0.209.7 只能用 line ending: toggle 动作切换,但缺少状态展示,看上去下一个版本就加上了 Zed v0.210.4 加上了 status_bar.line_endings_button