1{
2 // The name of the Zed theme to use for the UI
3 "theme": "cave-dark",
4 // The name of a font to use for rendering text in the editor
5 "buffer_font_family": "Zed Mono",
6 // The default font size for text in the editor
7 "buffer_font_size": 15,
8 // Whether to enable vim modes and key bindings
9 "vim_mode": false,
10 // Whether to show the informational hover box when moving the mouse
11 // over symbols in the editor.
12 "hover_popover_enabled": true,
13 // Whether to pop the completions menu while typing in an editor without
14 // explicitly requesting it.
15 "show_completions_on_input": true,
16 // Whether new projects should start out 'online'. Online projects
17 // appear in the contacts panel under your name, so that your contacts
18 // can see which projects you are working on. Regardless of this
19 // setting, projects keep their last online status when you reopen them.
20 "projects_online_by_default": true,
21 // Whether to use language servers to provide code intelligence.
22 "enable_language_server": true,
23 // When to automatically save edited buffers. This setting can
24 // take four values.
25 //
26 // 1. Never automatically save:
27 // "autosave": "off",
28 // 2. Save when changing focus away from the Zed window:
29 // "autosave": "on_window_change",
30 // 3. Save when changing focus away from a specific buffer:
31 // "autosave": "on_focus_change",
32 // 4. Save when idle for a certain amount of time:
33 // "autosave": { "after_delay": {"milliseconds": 500} },
34 "autosave": "off",
35 // How to auto-format modified buffers when saving them. This
36 // setting can take three values:
37 //
38 // 1. Don't format code
39 // "format_on_save": "off"
40 // 2. Format code using the current language server:
41 // "format_on_save": "language_server"
42 // 3. Format code using an external command:
43 // "format_on_save": {
44 // "external": {
45 // "command": "sed",
46 // "arguments": ["-e", "s/ *$//"]
47 // }
48 // },
49 "format_on_save": "language_server",
50 // How to soft-wrap long lines of text. This setting can take
51 // three values:
52 //
53 // 1. Do not soft wrap.
54 // "soft_wrap": "none",
55 // 2. Soft wrap lines that overflow the editor:
56 // "soft_wrap": "editor_width",
57 // 2. Soft wrap lines at the preferred line length
58 // "soft_wrap": "preferred_line_length",
59 "soft_wrap": "none",
60 // The column at which to soft-wrap lines, for buffers where soft-wrap
61 // is enabled.
62 "preferred_line_length": 80,
63 // Whether to indent lines using tab characters, as opposed to multiple
64 // spaces.
65 "hard_tabs": false,
66 // How many columns a tab should occupy.
67 "tab_size": 4,
68 // Different settings for specific languages.
69 "languages": {
70 "Plain Text": {
71 "soft_wrap": "preferred_line_length"
72 },
73 "C": {
74 "tab_size": 2
75 },
76 "C++": {
77 "tab_size": 2
78 },
79 "Go": {
80 "tab_size": 4,
81 "hard_tabs": true
82 },
83 "Markdown": {
84 "soft_wrap": "preferred_line_length"
85 },
86 "Rust": {
87 "tab_size": 4
88 },
89 "JavaScript": {
90 "tab_size": 2
91 },
92 "TypeScript": {
93 "tab_size": 2
94 },
95 "TSX": {
96 "tab_size": 2
97 }
98 }
99}