mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-28 03:25:59 +00:00
99 lines
3.4 KiB
JSON
99 lines
3.4 KiB
JSON
{
|
|
// The name of the Zed theme to use for the UI
|
|
"theme": "cave-dark",
|
|
// The name of a font to use for rendering text in the editor
|
|
"buffer_font_family": "Zed Mono",
|
|
// The default font size for text in the editor
|
|
"buffer_font_size": 15,
|
|
// Whether to enable vim modes and key bindings
|
|
"vim_mode": false,
|
|
// Whether to show the informational hover box when moving the mouse
|
|
// over symbols in the editor.
|
|
"hover_popover_enabled": true,
|
|
// Whether to pop the completions menu while typing in an editor without
|
|
// explicitly requesting it.
|
|
"show_completions_on_input": true,
|
|
// Whether new projects should start out 'online'. Online projects
|
|
// appear in the contacts panel under your name, so that your contacts
|
|
// can see which projects you are working on. Regardless of this
|
|
// setting, projects keep their last online status when you reopen them.
|
|
"projects_online_by_default": true,
|
|
// Whether to use language servers to provide code intelligence.
|
|
"enable_language_server": true,
|
|
// When to automatically save edited buffers. This setting can
|
|
// take four values.
|
|
//
|
|
// 1. Never automatically save:
|
|
// "autosave": "off",
|
|
// 2. Save when changing focus away from the Zed window:
|
|
// "autosave": "on_window_change",
|
|
// 3. Save when changing focus away from a specific buffer:
|
|
// "autosave": "on_focus_change",
|
|
// 4. Save when idle for a certain amount of time:
|
|
// "autosave": { "after_delay": {"milliseconds": 500} },
|
|
"autosave": "off",
|
|
// How to auto-format modified buffers when saving them. This
|
|
// setting can take three values:
|
|
//
|
|
// 1. Don't format code
|
|
// "format_on_save": "off"
|
|
// 2. Format code using the current language server:
|
|
// "format_on_save": "language_server"
|
|
// 3. Format code using an external command:
|
|
// "format_on_save": {
|
|
// "external": {
|
|
// "command": "sed",
|
|
// "arguments": ["-e", "s/ *$//"]
|
|
// }
|
|
// },
|
|
"format_on_save": "language_server",
|
|
// How to soft-wrap long lines of text. This setting can take
|
|
// three values:
|
|
//
|
|
// 1. Do not soft wrap.
|
|
// "soft_wrap": "none",
|
|
// 2. Soft wrap lines that overflow the editor:
|
|
// "soft_wrap": "editor_width",
|
|
// 2. Soft wrap lines at the preferred line length
|
|
// "soft_wrap": "preferred_line_length",
|
|
"soft_wrap": "none",
|
|
// The column at which to soft-wrap lines, for buffers where soft-wrap
|
|
// is enabled.
|
|
"preferred_line_length": 80,
|
|
// Whether to indent lines using tab characters, as opposed to multiple
|
|
// spaces.
|
|
"hard_tabs": false,
|
|
// How many columns a tab should occupy.
|
|
"tab_size": 4,
|
|
// Different settings for specific languages.
|
|
"languages": {
|
|
"Plain Text": {
|
|
"soft_wrap": "preferred_line_length"
|
|
},
|
|
"C": {
|
|
"tab_size": 2
|
|
},
|
|
"C++": {
|
|
"tab_size": 2
|
|
},
|
|
"Go": {
|
|
"tab_size": 4,
|
|
"hard_tabs": true
|
|
},
|
|
"Markdown": {
|
|
"soft_wrap": "preferred_line_length"
|
|
},
|
|
"Rust": {
|
|
"tab_size": 4
|
|
},
|
|
"JavaScript": {
|
|
"tab_size": 2
|
|
},
|
|
"TypeScript": {
|
|
"tab_size": 2
|
|
},
|
|
"TSX": {
|
|
"tab_size": 2
|
|
}
|
|
}
|
|
}
|