zed 和 sublime-text 配置
最近发现 vscode 吃内存越来越厉害了,尝试了一下 zed 和 sublime-text,然后修改为我习惯的配置以可以最小程度改变使用习惯来测试具体情况
测试后发现 vscode 的内存占用大部分主要是拓展导致的,关掉非必需的拓展后,内存占用其实和 zed/sublime-text 差不多,zed 的滚动很不流畅,有明显的粗糙/打磨不足的感觉,sublime-text 很舒服但是 git 相关功能是需要额外安装一个应用的,且貌似拓展功能使用 python 来实现
测试过程中顺便配置好了两个编辑器使用内置 html 语法高亮处理 vue 文件,这里就把相关的配置放一份在这里备用
zed
json
{
"telemetry": {
"diagnostics": false,
"metrics": false
},
"base_keymap": "VSCode",
"theme": "Gruvbox Dark",
"autosave": "on_focus_change",
"ui_font_size": 16,
"ui_font_family": "PingFang SC",
"buffer_font_family": "Maple Mono",
"formatter": {
"external": {
"command": "prettier",
"arguments": ["--stdin-filepath", "{buffer_path}"]
}
},
"tab_size": 2,
"buffer_font_size": 14,
"soft_wrap": "editor_width",
"buffer_line_height": {
"custom": 2.1
},
"project_panel": {
"file_icons": false,
"folder_icons": false,
"git_status": false
},
"collaboration_panel": { "button": false },
"notification_panel": { "button": false },
"show_call_status_icon": false,
"enable_language_server": true,
"show_whitespaces": "none",
"scrollbar": {
"git_diff": false
},
"toolbar": {
"breadcrumbs": false,
"quick_actions": false
},
"file_types": {
"HTML": ["**/*.vue"]
},
"tabs": {
"show_close_button": "hidden"
}
}
sublime-text
json
{
"theme": "Adaptive.sublime-theme",
"color_scheme": "ayu-mirage.sublime-color-scheme",
"font_options": ["no_italic", "no_bold"],
"font_size": 12,
"tab_size": 2,
"word_wrap": true,
"line_padding_top": 4,
"line_padding_bottom": 4,
"save_on_focus_lost": true,
"font_face": "Maple Mono",
"highlight_gutter": false,
"caret_style": "phase",
"show_tab_close_buttons": false,
"hide_new_tab_button": true,
"hide_tab_scrolling_buttons": true,
"enable_tab_scrolling": false,
"ignored_packages": ["Package Control", "Vintage"]
}
/Users/ryan/Library/Application Support/Sublime Text/Packages/User/HTML.sublime-settings
json
{
"extensions": ["html", "htm", "shtml", "xhtml", "vue"]
}
/Users/ryan/Library/Application Support/Sublime Text/Packages/User/JsPrettier.sublime-settings
json
{
"auto_format_on_save": true,
"auto_format_on_save_excludes": [],
"prettier_cli_path": "/Users/ryan/.node/node-v24.6.0-darwin-arm64/bin/prettier",
"node_path": "/Users/ryan/.node/node-v24.6.0-darwin-arm64/bin/node",
"auto_format_on_save_requires_prettier_config": false,
"allow_inline_formatting": true,
"custom_file_extensions": ["vue", "sublime-settings", "md"]
}