个性化你的Helix编辑器体验,从主题设置到高级配置, 打造专属于你的开发环境。
内置主题和自定义配色方案
自定义快捷键和命令绑定
语言服务器和智能提示
编辑器行为和界面调整
通过简单的选项生成个性化的Helix配置文件
# Helix 配置文件
# 路径: ~/.config/helix/config.toml
[editor]
# 基本设置
theme = "onedark"
line-number = "relative"
mouse = true
# 编辑器行为
auto-pairs = true
smart-indent = true
soft-wrap = false
incremental-search = true
# 键位映射
[keys.normal]
C-s = ":write"
C-p = ":file-picker"
S-: = ":"
# 文件类型特定配置
[[language]]
name = "rust"
auto-format = true
[[language]]
name = "python"
auto-format = true
💡 提示:将生成的配置保存到 ~/.config/helix/config.toml
Helix内置的精美主题预览
为不同编程语言配置语言服务器
需要安装: rust-analyzer, rustfmt, clippy
需要安装: python-lsp-server, black, isort
需要安装: typescript-language-server, prettier
需要安装: gopls, goimports
需要安装: typescript-language-server, prettier
需要安装: clangd, clang-format