Skip to content

Instantly share code, notes, and snippets.

@sidneyspe
Created November 16, 2025 22:37
Show Gist options
  • Select an option

  • Save sidneyspe/2070e4a7ae3af1b1a330705d21318c51 to your computer and use it in GitHub Desktop.

Select an option

Save sidneyspe/2070e4a7ae3af1b1a330705d21318c51 to your computer and use it in GitHub Desktop.
Zed Settings
// ~/.config/zed/settings.json
{
//
// Aparência básica (equivalente geral ao editor.* do VS Code)
//
"buffer_font_family": "JetBrainsMono Nerd Font", // editor.fontFamily
"buffer_font_size": 14, // editor.fontSize
"buffer_line_height": { "custom": 1.8 }, // editor.lineHeight
// Destacar linha atual só no "gutter", como no VS Code
// editor.renderLineHighlight = "gutter"
"current_line_highlight": "gutter",
// Identação padrão
// editor.tabSize = 2
"tab_size": 2,
//
// Rulers (wrap guides) → editor.rulers = [80, 120]
//
"show_wrap_guides": true,
"wrap_guides": [80, 120],
//
// Scrollbar & minimap
// editor.scrollbar.vertical = "hidden"
// editor.minimap.enabled = false
//
"minimap": {
"show": "never"
},
"scrollbar": {
"show": "never", // mais próximo de "hidden"
"cursors": false, // parecido com hideCursorInOverviewRuler
"git_diff": true,
"search_results": true,
"selected_text": true,
"selected_symbol": true,
"diagnostics": "all",
"axes": {
"horizontal": true,
"vertical": false
}
},
//
// Tema claro/escuro (aprox. do seu Omni / Min Light)
//
"theme": {
"dark": "Omni",
"light": "Min Light",
"mode": "system" // igual ao window.autoDetectColorScheme = true
},
// Icon theme – Zed não tem Symbols, então deixamos o default
"icon_theme": {
"dark": "Zed (Default)",
"light": "Zed (Default)",
"mode": "system"
},
//
// Status bar / barra inferior
// workbench.statusBar.visible = false
//
"status_bar": {
"experimental.show": false
},
//
// Toolbar / breadcrumbs / command center vibe
// breadcrumbs.enabled = false
// window.commandCenter = false
//
"toolbar": {
"breadcrumbs": false,
"quick_actions": false,
"selections_menu": true,
"agent_review": true,
"code_actions": false
},
//
// Project panel ≈ explorer do VS Code
// explorer.compactFolders = false
//
"project_panel": {
"starts_open": true,
"auto_fold_dirs": false, // sem "compact folders"
"hide_gitignore": false,
"hide_hidden": false,
"file_icons": true,
"folder_icons": true,
"git_status": true,
"sticky_scroll": false
},
//
// Excluir arquivos/pastas (files.exclude)
// Mantém defaults do Zed e adiciona .vscode
//
"file_scan_exclusions": [
"**/.git",
"**/.svn",
"**/.hg",
"**/.jj",
"**/CVS",
"**/.DS_Store",
"**/Thumbs.db",
"**/.classpath",
"**/.settings",
"**/.vscode"
// se quiser esconder node_modules aqui, adiciona:
// "**/node_modules"
],
//
// Associações de arquivos (files.associations)
//
"file_types": {
// ".env.*": "dotenv", ".dev.vars": "dotenv"
"dotenv": [".env.*", ".dev.vars"],
// ".prettierrc": "json"
"JSON": [".prettierrc"],
// "*.css": "css"
"CSS": ["*.css"],
// "*.rmd": "markdown"
"Markdown": ["*.rmd"]
},
//
// Signature help / parameter hints
// editor.parameterHints.enabled = false
//
"auto_signature_help": false,
"show_signature_help_after_edits": false,
//
// Prettier: equivalente a prettier.requireConfig = true
//
"prettier": {
"require_config": true
},
//
// Terminal (fonte e tamanho)
// terminal.integrated.fontFamily / fontSize
//
"terminal": {
"font_family": "JetBrainsMono Nerd Font",
"font_size": 14,
"blinking": "off",
"shell": {
"program": "C:/Program Files/Git/bin/bash.exe"
}
},
//
// Formatação e lint – equivalente ao combo:
"languages": {
"JavaScript": {
"tab_size": 2,
"format_on_save": "on",
"formatter": [
{
// source.fixAll.eslint
"code_action": "source.fixAll.eslint"
},
{
// prettier --stdin-filepath {buffer_path}
"external": {
"command": "prettier",
"arguments": ["--stdin-filepath", "{buffer_path}"]
}
}
]
},
"TypeScript": {
"tab_size": 2,
"format_on_save": "on",
"formatter": [
{
"code_action": "source.fixAll.eslint"
},
{
"external": {
"command": "prettier",
"arguments": ["--stdin-filepath", "{buffer_path}"]
}
}
]
},
"TypeScript React": {
"tab_size": 2,
"format_on_save": "on",
"formatter": [
{
"code_action": "source.fixAll.eslint"
},
{
"external": {
"command": "prettier",
"arguments": ["--stdin-filepath", "{buffer_path}"]
}
}
]
},
// [prisma] editor.formatOnSave = true
"Prisma": {
"format_on_save": "on"
}
}
}
@sidneyspe
Copy link
Author

Para linux:

// ~/.config/zed/settings.json
{
//
// Aparência básica (equivalente geral ao editor.* do VS Code)
//
"buffer_font_family": "JetBrainsMono Nerd Font", // editor.fontFamily
"buffer_font_size": 14, // editor.fontSize
"buffer_line_height": { "custom": 1.8 }, // editor.lineHeight

// Destacar linha atual só no "gutter", como no VS Code
// editor.renderLineHighlight = "gutter"
"current_line_highlight": "gutter",

// Identação padrão
// editor.tabSize = 2
"tab_size": 2,

//
// Rulers (wrap guides) → editor.rulers = [80, 120]
//
"show_wrap_guides": true,
"wrap_guides": [80, 120],

//
// Scrollbar & minimap
// editor.scrollbar.vertical = "hidden"
// editor.minimap.enabled = false
//
"minimap": {
"show": "never"
},
"scrollbar": {
"show": "never", // mais próximo de "hidden"
"cursors": false, // parecido com hideCursorInOverviewRuler
"git_diff": true,
"search_results": true,
"selected_text": true,
"selected_symbol": true,
"diagnostics": "all",
"axes": {
"horizontal": true,
"vertical": false
}
},

//
// Tema claro/escuro (aprox. do seu Omni / Min Light)
//
"theme": {
"dark": "Omni",
"light": "Min Light",
"mode": "system" // igual ao window.autoDetectColorScheme = true
},

// Icon theme – Zed não tem Symbols, então deixamos o default
"icon_theme": {
"dark": "Zed (Default)",
"light": "Zed (Default)",
"mode": "system"
},

//
// Status bar / barra inferior
// workbench.statusBar.visible = false
//
"status_bar": {
"experimental.show": false
},

//
// Toolbar / breadcrumbs / command center vibe
// breadcrumbs.enabled = false
// window.commandCenter = false
//
"toolbar": {
"breadcrumbs": false,
"quick_actions": false,
"selections_menu": true,
"agent_review": true,
"code_actions": false
},

//
// Project panel ≈ explorer do VS Code
// explorer.compactFolders = false
//
"project_panel": {
"starts_open": true,
"auto_fold_dirs": false, // sem "compact folders"
"hide_gitignore": false,
"hide_hidden": false,
"file_icons": true,
"folder_icons": true,
"git_status": true,
"sticky_scroll": false
},

//
// Excluir arquivos/pastas (files.exclude)
// Mantém defaults do Zed e adiciona .vscode
//
"file_scan_exclusions": [
"/.git",
"
/.svn",
"/.hg",
"
/.jj",
"/CVS",
"
/.DS_Store",
"/Thumbs.db",
"
/.classpath",
"/.settings",
"
/.vscode"
// se quiser esconder node_modules aqui, adiciona:
// "**/node_modules"
],

//
// Associações de arquivos (files.associations)
//
"file_types": {
// ".env.": "dotenv", ".dev.vars": "dotenv"
"dotenv": [".env.
", ".dev.vars"],
// ".prettierrc": "json"
"JSON": [".prettierrc"],
// ".css": "css"
"CSS": ["
.css"],
// ".rmd": "markdown"
"Markdown": ["
.rmd"]
},

//
// Signature help / parameter hints
// editor.parameterHints.enabled = false
//
"auto_signature_help": false,
"show_signature_help_after_edits": false,

//
// Prettier: equivalente a prettier.requireConfig = true
//
"prettier": {
"require_config": true
},

//
// Terminal (fonte e tamanho)
// terminal.integrated.fontFamily / fontSize
//
"terminal": {
"font_family": "JetBrainsMono Nerd Font",
"font_size": 14,
"blinking": "off",
"shell": {
"program": "zsh"
}
},

//
// Formatação e lint – equivalente ao combo:
"languages": {
"JavaScript": {
"tab_size": 2,
"format_on_save": "on",
"formatter": [
{
// source.fixAll.eslint
"code_action": "source.fixAll.eslint"
},
{
// prettier --stdin-filepath {buffer_path}
"external": {
"command": "prettier",
"arguments": ["--stdin-filepath", "{buffer_path}"]
}
}
]
},
"TypeScript": {
"tab_size": 2,
"format_on_save": "on",
"formatter": [
{
"code_action": "source.fixAll.eslint"
},
{
"external": {
"command": "prettier",
"arguments": ["--stdin-filepath", "{buffer_path}"]
}
}
]
},
"TypeScript React": {
"tab_size": 2,
"format_on_save": "on",
"formatter": [
{
"code_action": "source.fixAll.eslint"
},
{
"external": {
"command": "prettier",
"arguments": ["--stdin-filepath", "{buffer_path}"]
}
}
]
},
// [prisma] editor.formatOnSave = true
"Prisma": {
"format_on_save": "on"
}
}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment