Skip to content

Instantly share code, notes, and snippets.

@AnjanJ
Last active June 27, 2025 01:44
Show Gist options
  • Save AnjanJ/b4c8c67f446d256f424a89fff2d3e332 to your computer and use it in GitHub Desktop.
Save AnjanJ/b4c8c67f446d256f424a89fff2d3e332 to your computer and use it in GitHub Desktop.
zed settings,tasks and debug.json
[
{
"name": "Ruby: Debug Current File",
"type": "ruby",
"request": "launch",
"program": "${file}",
"cwd": "${workspaceFolder}",
"useBundler": true,
"pathToBundler": "/usr/local/bin/bundle",
"pathToRDebugIDE": "rdebug-ide",
"args": [],
"env": {
"RUBY_DEBUG_OPEN": "true"
}
},
{
"name": "Rails: Debug Server",
"type": "ruby",
"request": "launch",
"program": "${workspaceFolder}/bin/rails",
"args": ["server"],
"cwd": "${workspaceFolder}",
"useBundler": true,
"env": {
"RAILS_ENV": "development",
"RUBY_DEBUG_OPEN": "true",
"RUBY_DEBUG_PORT": "38698"
},
"showDebuggerOutput": true
},
{
"name": "Rails: Debug Console",
"type": "ruby",
"request": "launch",
"program": "${workspaceFolder}/bin/rails",
"args": ["console"],
"cwd": "${workspaceFolder}",
"useBundler": true,
"env": {
"RAILS_ENV": "development",
"RUBY_DEBUG_OPEN": "true"
}
},
{
"name": "Rails: Debug Background Job (Sidekiq)",
"type": "ruby",
"request": "launch",
"program": "${workspaceFolder}/bin/sidekiq",
"args": ["-C", "config/sidekiq.yml"],
"cwd": "${workspaceFolder}",
"useBundler": true,
"env": {
"RAILS_ENV": "development",
"RUBY_DEBUG_OPEN": "true"
}
},
{
"name": "RSpec: Debug Current Spec",
"type": "ruby",
"request": "launch",
"program": "${workspaceFolder}/bin/rspec",
"args": ["${file}:${lineNumber}"],
"cwd": "${workspaceFolder}",
"useBundler": true,
"env": {
"RAILS_ENV": "test",
"RUBY_DEBUG_OPEN": "true"
}
},
{
"name": "Minitest: Debug Current Test",
"type": "ruby",
"request": "launch",
"program": "${workspaceFolder}/bin/rails",
"args": ["test", "${file}:${lineNumber}"],
"cwd": "${workspaceFolder}",
"useBundler": true,
"env": {
"RAILS_ENV": "test",
"RUBY_DEBUG_OPEN": "true"
}
},
{
"name": "Python: Debug Current File",
"type": "python",
"request": "launch",
"program": "${file}",
"console": "integratedTerminal",
"justMyCode": false,
"env": {
"PYTHONPATH": "${workspaceFolder}"
}
},
{
"name": "Python: Debug pytest",
"type": "python",
"request": "launch",
"module": "pytest",
"args": ["${file}", "-v"],
"console": "integratedTerminal",
"justMyCode": false
},
{
"name": "TypeScript: Debug Node",
"type": "node",
"request": "launch",
"program": "${file}",
"cwd": "${workspaceFolder}",
"runtimeExecutable": "node",
"runtimeArgs": ["--inspect-brk", "${file}"],
"port": 9229,
"skipFiles": ["<node_internals>/**"],
"sourceMaps": true,
"outFiles": ["${workspaceFolder}/dist/**/*.js"]
},
{
"name": "React: Debug App",
"type": "chrome",
"request": "launch",
"url": "http://localhost:3000",
"webRoot": "${workspaceFolder}/src",
"sourceMaps": true,
"sourceMapPathOverrides": {
"webpack:///src/*": "${webRoot}/*"
}
}
]
{
"features": {
"edit_prediction_provider": "zed"
},
"base_keymap": "VSCode",
"theme": {
"mode": "system",
"light": "One Light",
"dark": "Aura Dark (Soft Text)"
},
"ui_font_size": 16,
"buffer_font_size": 16,
"buffer_font_family": "Fira Code",
"buffer_font_fallbacks": [
"JetBrains Mono",
"Monaco"
],
"buffer_font_features": {
"calt": true
},
"buffer_font_weight": 400,
"buffer_line_height": {
"custom": 1.4
},
"tab_size": 2,
"hard_tabs": false,
"cursor_blink": false,
"scrollbar": {
"show": "auto",
"cursors": true,
"git_diff": true,
"search_results": true,
"diagnostics": "all"
},
"format_on_save": "on",
"remove_trailing_whitespace_on_save": true,
"ensure_final_newline_on_save": true,
"auto_save": "on_focus_change",
"vim_mode": false,
"relative_line_numbers": false,
"preferred_line_length": 120,
"wrap_guides": [
80,
120
],
"show_wrap_guides": true,
"soft_wrap": "editor_width",
"show_whitespaces": "selection",
"extend_comment_on_newline": true,
"use_on_type_format": true,
"inlay_hints": {
"enabled": true,
"show_type_hints": true,
"show_parameter_hints": true,
"show_other_hints": true,
"edit_debounce_ms": 700,
"scroll_debounce_ms": 50
},
"languages": {
"Ruby": {
"tab_size": 2,
"formatter": "language_server",
"language_servers": [
"ruby-lsp",
"!solargraph"
],
"hard_tabs": false,
"preferred_line_length": 120,
"soft_wrap": "preferred_line_length"
},
"ERB": {
"language_servers": [
"ruby-lsp"
],
"formatter": "language_server",
"tab_size": 2,
"hard_tabs": false
},
"HTML.erb": {
"language_servers": [
"ruby-lsp"
],
"formatter": "language_server",
"tab_size": 2,
"hard_tabs": false
},
"HAML": {
"tab_size": 2,
"hard_tabs": false
},
"SCSS": {
"formatter": "prettier",
"tab_size": 2,
"hard_tabs": false
},
"CSS": {
"formatter": "prettier",
"tab_size": 2,
"hard_tabs": false
},
"JavaScript": {
"tab_size": 2,
"formatter": "prettier",
"language_servers": [
"typescript-language-server",
"eslint"
],
"hard_tabs": false
},
"TypeScript": {
"tab_size": 2,
"formatter": "prettier",
"language_servers": [
"typescript-language-server",
"eslint"
],
"hard_tabs": false
},
"TSX": {
"tab_size": 2,
"formatter": "prettier",
"language_servers": [
"typescript-language-server",
"eslint",
"tailwindcss-language-server"
],
"hard_tabs": false
},
"JSX": {
"tab_size": 2,
"formatter": "prettier",
"language_servers": [
"typescript-language-server",
"eslint",
"tailwindcss-language-server"
],
"hard_tabs": false
},
"Python": {
"tab_size": 4,
"language_servers": [
"pyright",
"ruff"
],
"hard_tabs": false,
"preferred_line_length": 88,
"soft_wrap": "preferred_line_length"
},
"Elixir": {
"tab_size": 2,
"formatter": "language_server",
"language_servers": [
"elixir-ls"
],
"hard_tabs": false
},
"Markdown": {
"soft_wrap": "preferred_line_length",
"preferred_line_length": 80,
"format_on_save": "off"
},
"YAML": {
"tab_size": 2,
"formatter": "prettier",
"language_servers": [
"yaml-language-server"
]
},
"JSON": {
"tab_size": 2,
"formatter": "prettier"
},
"Dockerfile": {
"tab_size": 2,
"language_servers": [
"docker-langserver"
],
"hard_tabs": false
},
"Git Commit": {
"soft_wrap": "editor_width",
"preferred_line_length": 72
}
},
"lsp": {
"ruby-lsp": {
"initialization_options": {
"enabledFeatures": {
"diagnostics": true,
"formatting": true,
"onTypeFormatting": false,
"foldingRanges": true,
"selectionRanges": true,
"semanticHighlighting": false,
"debugging": true
},
"formatter": "rubocop",
"featuresConfiguration": {
"inlayHint": {
"enableAll": false
},
"debugging": {
"enabled": true,
"attachMode": "remote",
"remotePort": 38698
}
},
"rubyVersionManager": {
"identifier": "auto"
}
}
},
"typescript-language-server": {
"initialization_options": {
"preferences": {
"includeInlayParameterNameHints": "all",
"includeInlayParameterNameHintsWhenArgumentMatchesName": true,
"includeInlayFunctionParameterTypeHints": true,
"includeInlayVariableTypeHints": true,
"includeInlayPropertyDeclarationTypeHints": true,
"includeInlayFunctionLikeReturnTypeHints": true,
"includeInlayEnumMemberValueHints": true,
"importModuleSpecifierPreference": "shortest",
"includeCompletionsForModuleExports": true,
"quotePreference": "single",
"allowIncompleteCompletions": true,
"allowRenameOfImportPath": true
},
"tsserver": {
"maxTsServerMemory": 8192
}
}
},
"pyright": {
"settings": {
"python": {
"analysis": {
"typeCheckingMode": "basic",
"autoImportCompletions": true,
"diagnosticMode": "openFilesOnly",
"autoSearchPaths": true,
"useLibraryCodeForTypes": true,
"diagnosticSeverityOverrides": {
"reportUnusedImport": "warning",
"reportUnusedVariable": "warning",
"reportUnusedFunction": "warning"
}
},
"linting": {
"enabled": true,
"pylintEnabled": false,
"flake8Enabled": false
},
"testing": {
"pytestEnabled": true,
"unittestEnabled": false
}
}
}
},
"ruff": {
"initialization_options": {
"settings": {
"organizeImports": true,
"fixAll": true,
"lint": {
"enable": true,
"run": "onType"
}
}
}
},
"elixir-ls": {
"initialization_options": {
"dialyzerEnabled": true,
"fetchDeps": false,
"suggestSpecs": true,
"enableTestLenses": true,
"mixEnv": "test",
"mixTarget": "host",
"projectDir": "${workspaceRoot}",
"additionalWatchedExtensions": [
".ex",
".exs",
".eex",
".leex",
".heex"
]
}
},
"eslint": {
"settings": {
"codeActionOnSave": {
"rules": [
"import/order",
"import/first",
"import/no-duplicates"
]
}
}
},
"tailwindcss-language-server": {
"settings": {
"tailwindCSS": {
"emmetCompletions": true,
"classAttributes": [
"class",
"className",
"ngClass"
],
"lint": {
"cssConflict": "warning",
"invalidApply": "error",
"invalidConfigPath": "error",
"invalidScreen": "error",
"invalidTailwindDirective": "error",
"invalidVariant": "error",
"recommendedVariantOrder": "warning"
}
}
}
},
"yaml-language-server": {
"settings": {
"yaml": {
"schemas": {
"kubernetes": [
"*.k8s.yaml",
"*.k8s.yml",
"k8s/**/*.yaml",
"k8s/**/*.yml"
],
"https://json.schemastore.org/docker-compose.json": [
"docker-compose*.yml",
"docker-compose*.yaml"
],
"https://raw.githubusercontent.com/ansible/ansible/main/lib/ansible/config/ansible_builtin_runtime.yml": [
"ansible/**/*.yml",
"ansible/**/*.yaml",
"playbooks/**/*.yml",
"playbooks/**/*.yaml"
]
},
"validate": true,
"hover": true,
"completion": true,
"customTags": [
"!reference sequence",
"!encrypted/pkcs1-oaep scalar",
"!vault scalar"
]
}
}
},
"docker-langserver": {
"settings": {
"docker": {
"languageserver": {
"formatter": {
"ignoreMultilineInstructions": true
}
}
}
}
}
},
"git": {
"git_gutter": "tracked_files",
"inline_blame": {
"enabled": true,
"delay_ms": 800
},
"gutter_debounce": 300
},
"file_scan_exclusions": [
"**/.git",
"**/node_modules",
"**/target",
"**/.bundle",
"**/vendor",
"**/tmp",
"**/log",
"**/coverage",
"**/dist",
"**/build",
"**/__pycache__",
"**/venv",
"**/env",
"**/.venv",
"**/_build",
"**/deps",
"**/.elixir_ls"
],
"terminal": {
"shell": {
"program": "zsh"
},
"working_directory": "current_project_directory",
"env": {
"EDITOR": "zed --wait"
},
"font_family": "JetBrains Mono",
"font_size": 14,
"line_height": {
"custom": 1.3
},
"option_as_meta": true,
"copy_on_select": true,
"alternate_scroll": "on",
"toolbar": {
"title": true
}
},
"project_panel": {
"button": true,
"default_width": 240,
"dock": "left",
"file_icons": true,
"folder_icons": true,
"git_status": true,
"indent_size": 20,
"auto_reveal_entries": true,
"auto_fold_dirs": true,
"scrollbar": {
"show": "auto"
}
},
"collaboration": {
"panel": {
"button": true,
"dock": "left",
"default_width": 240
},
"mute_on_join": false,
"share_on_join": true,
"join_via_web": true
},
"notification_panel": {
"button": true,
"dock": "bottom",
"default_height": 200
},
"chat_panel": {
"button": "always",
"dock": "right",
"default_width": 240
},
"agent": {
"default_model": {
"provider": "zed.dev",
"model": "claude-sonnet-4"
},
"version": "2",
"enabled": true,
"button": true,
"dock": "right",
"default_width": 640,
"default_height": 320,
"inline_alternatives": [
{
"provider": "zed.dev",
"model": "claude-sonnet-4"
},
{
"provider": "zed.dev",
"model": "claude-opus-4"
},
{
"provider": "zed.dev",
"model": "gpt-4o"
},
{
"provider": "zed.dev",
"model": "gpt-4o-mini"
},
{
"provider": "zed.dev",
"model": "gemini-2.0-flash"
}
]
},
"outline_panel": {
"button": true,
"dock": "left",
"default_width": 240,
"file_icons": true,
"folder_icons": true,
"git_status": true,
"indent_size": 20,
"auto_reveal_entries": true,
"auto_fold_dirs": true
},
"tabs": {
"close_position": "right",
"file_icons": true,
"git_status": true
},
"indent_guides": {
"enabled": true,
"line_width": 1,
"active_line_width": 1,
"coloring": "indent_aware",
"background_coloring": "disabled"
},
"bracket_pairs": {
"enabled": true,
"scope_lines": true,
"line_width": 1,
"active_line_width": 2,
"coloring": "indent_aware",
"background_coloring": "disabled"
},
"toolbar": {
"breadcrumbs": true,
"quick_actions": true
},
"multi_cursor_modifier": "cmd_or_ctrl",
"confirm_quit": true,
"restore_on_startup": "last_workspace",
"drop_target_size": 0.2,
"when_closing_with_no_tabs": "platform_default",
"show_call_hierarchy_on_click": false,
"completion_documentation_secondary_query_debounce": 300,
"prettier": {
"singleQuote": true,
"semi": false,
"trailingComma": "es5",
"printWidth": 120,
"tabWidth": 2,
"useTabs": false,
"bracketSpacing": true,
"bracketSameLine": false,
"arrowParens": "avoid"
},
"diagnostics": {
"include_warnings": true
},
"code_actions_on_format": {
"source.fixAll": true,
"source.organizeImports": true
},
"telemetry": {
"diagnostics": false,
"metrics": false
},
"journal": {
"path": "~/Documents/journal",
"hour_format": "hour24"
},
"auto_update": true,
"task": {
"show_status_icon": true
},
"file_types": {
"Dockerfile": [
"Dockerfile*",
"*.dockerfile",
".dockerignore"
],
"YAML": [
"*.yml",
"*.yaml",
".github/**/*.yml",
"k8s/**/*.yml",
"k8s/**/*.yaml",
"kubernetes/**/*.yml",
"kubernetes/**/*.yaml",
".kube/*.yml",
".kube/*.yaml",
"docker-compose*.yml",
"docker-compose*.yaml"
],
"JSON": [
"*.json",
".vscode/*.json",
"tsconfig*.json"
],
"Ruby": [
"*.rb",
"*.rake",
"Rakefile",
"Gemfile",
"*.gemspec",
"Guardfile",
"Capfile",
"*.ru"
],
"Python": [
"*.py",
"*.pyw",
"*.pyi"
],
"Elixir": [
"*.ex",
"*.exs",
"mix.exs"
]
},
"multi_buffer_editor": {
"tab_size": 2,
"show_indent_guides": true,
"show_gutter": true,
"show_line_numbers": true,
"show_relative_line_numbers": false,
"show_code_actions": true,
"show_runnables": true,
"show_wrap_guides": true,
"show_breadcrumbs": true
},
"bindings": {
"cmd-/": "editor::ToggleComments",
"cmd-d": "editor::SelectNext",
"cmd-shift-d": "editor::DuplicateLine",
"cmd-shift-k": "editor::DeleteLine",
"cmd-shift-up": "editor::MoveLineUp",
"cmd-shift-down": "editor::MoveLineDown",
"cmd-b": "workspace::ToggleLeftDock",
"cmd-shift-f": "project_search::ToggleFocus",
"cmd-shift-e": "project_panel::ToggleFocus",
"cmd-k cmd-t": "theme_selector::Toggle",
"cmd-k cmd-s": "zed::OpenKeymap",
"cmd-,": "zed::OpenSettings",
"alt-shift-f": "editor::Format",
"f2": "editor::Rename",
"f12": "editor::GoToDefinition",
"cmd-r": "outline::Toggle",
"cmd-shift-o": "file_finder::Toggle",
"cmd-shift-p": "command_palette::Toggle",
"ctrl-`": "terminal::ToggleFocus",
"cmd-\\": "workspace::ToggleRightDock",
"cmd-shift-\\": "workspace::ToggleBottomDock",
"cmd-k z": "workspace::ToggleZenMode",
"cmd-shift-t": "task::Spawn",
"cmd-k cmd-r": "task::Rerun",
"cmd-shift-m": "diagnostics::Deploy",
"f8": "editor::GoToDiagnostic",
"shift-f8": "editor::GoToPrevDiagnostic",
"cmd-k cmd-i": "editor::Hover",
"cmd-shift-r": "project_symbols::Toggle",
"alt-enter": "editor::ToggleCodeActions",
"cmd-alt-l": "editor::Format",
"cmd-k cmd-j": "editor::UnfoldAll",
"cmd-k cmd-0": "editor::FoldAll",
"cmd-k cmd-[": "editor::Fold",
"cmd-k cmd-]": "editor::Unfold",
"alt-up": "editor::MoveLineUp",
"alt-down": "editor::MoveLineDown",
"alt-shift-up": "editor::DuplicateLineUp",
"alt-shift-down": "editor::DuplicateLineDown",
"cmd-j": "editor::ToggleInlayHints",
"cmd-shift-l": "editor::SelectAllMatches",
"cmd-u": "editor::UndoCursorMovement",
"cmd-shift-u": "editor::RedoCursorMovement",
"cmd-alt-[": "pane::ActivatePrevItem",
"cmd-alt-]": "pane::ActivateNextItem",
"cmd-w": "pane::CloseActiveItem",
"cmd-k cmd-w": "workspace::CloseAllItemsAndPanes",
"cmd-alt-d": "editor::DuplicateSelection",
"ctrl-g": "go_to_line::Toggle",
"cmd-shift-g": "assistant::InlineAssist",
"f3": "search::SelectNextMatch",
"shift-f3": "search::SelectPrevMatch",
"cmd-alt-c": "editor::ToggleCaseSensitive",
"cmd-alt-w": "editor::ToggleWholeWord",
"cmd-alt-r": "editor::ToggleRegex",
"cmd-t": "task::Spawn",
"cmd-shift-b": "task::Build",
"cmd-k t": "task::ShowTaskList",
"cmd-k r": "task::RunLastTask"
}
}
[
{
"label": "RSpec: Run Current File",
"command": "bundle exec rspec ${ZED_FILE}"
},
{
"label": "RSpec: Run Current Line",
"command": "bundle exec rspec ${ZED_FILE}:${ZED_ROW}"
},
{
"label": "RSpec: Run All Tests",
"command": "bundle exec rspec"
},
{
"label": "RSpec: Run Failed Tests",
"command": "bundle exec rspec --only-failures"
},
{
"label": "Minitest: Run Current File",
"command": "bundle exec rails test ${ZED_FILE}"
},
{
"label": "Minitest: Run Current Test",
"command": "bundle exec rails test ${ZED_FILE}:${ZED_ROW}"
},
{
"label": "Minitest: Run Test by Name",
"command": "bundle exec rails test ${ZED_FILE} -n '${ZED_SYMBOL}'"
},
{
"label": "Rails: Run All Tests",
"command": "bundle exec rails test"
},
{
"label": "Rails: Run System Tests",
"command": "bundle exec rails test:system"
},
{
"label": "Rails: Parallel Tests",
"command": "bundle exec rails parallel:test"
},
{
"label": "Rubocop: Lint Current File",
"command": "bundle exec rubocop ${ZED_FILE}"
},
{
"label": "Rubocop: Auto-fix Current File",
"command": "bundle exec rubocop -a ${ZED_FILE}"
},
{
"label": "Rails: Start Server",
"command": "bundle exec rails server"
},
{
"label": "Rails: Start Console",
"command": "bundle exec rails console"
},
{
"label": "Rails: DB Migrate",
"command": "bundle exec rails db:migrate"
},
{
"label": "Rails: DB Rollback",
"command": "bundle exec rails db:rollback"
},
{
"label": "Rails: Generate Migration",
"command": "bundle exec rails generate migration"
},
{
"label": "Bundle: Install",
"command": "bundle install"
},
{
"label": "Bundle: Update",
"command": "bundle update"
},
{
"label": "Pytest: Run Current File",
"command": "pytest ${ZED_FILE} -v"
},
{
"label": "Pytest: Run Current Test",
"command": "pytest ${ZED_FILE}::${ZED_SYMBOL} -v"
},
{
"label": "Pytest: Run with Coverage",
"command": "pytest --cov=. --cov-report=html"
},
{
"label": "Jest: Run Current File",
"command": "npm test -- ${ZED_FILE}"
},
{
"label": "Jest: Run in Watch Mode",
"command": "npm test -- --watch ${ZED_FILE}"
},
{
"label": "Mix: Test Current File",
"command": "mix test ${ZED_FILE}"
},
{
"label": "Mix: Test Current Line",
"command": "mix test ${ZED_FILE}:${ZED_ROW}"
},
{
"label": "Docker: Build Current Dockerfile",
"command": "docker build -f ${ZED_FILE} -t ${ZED_WORKTREE_ROOT:t} ."
},
{
"label": "Docker: Build and Run",
"command": "docker build -t ${ZED_WORKTREE_ROOT:t} . && docker run -it --rm ${ZED_WORKTREE_ROOT:t}"
},
{
"label": "Docker: Compose Up",
"command": "docker-compose up"
},
{
"label": "Docker: Compose Down",
"command": "docker-compose down"
},
{
"label": "Docker: Compose Build",
"command": "docker-compose build"
},
{
"label": "Docker: Compose Logs",
"command": "docker-compose logs -f"
},
{
"label": "Kubernetes: Apply Current File",
"command": "kubectl apply -f ${ZED_FILE}"
},
{
"label": "Kubernetes: Delete Current File Resources",
"command": "kubectl delete -f ${ZED_FILE}"
},
{
"label": "Kubernetes: Dry Run Current File",
"command": "kubectl apply -f ${ZED_FILE} --dry-run=client"
},
{
"label": "Kubernetes: Validate Current File",
"command": "kubectl apply -f ${ZED_FILE} --validate=true --dry-run=client"
},
{
"label": "Kubernetes: Get Pods",
"command": "kubectl get pods"
},
{
"label": "Kubernetes: Get All Resources",
"command": "kubectl get all"
},
{
"label": "Kubernetes: Describe Pod",
"command": "kubectl describe pod"
},
{
"label": "Kubernetes: Logs",
"command": "kubectl logs -f"
},
{
"label": "Helm: Install Chart",
"command": "helm install"
},
{
"label": "Helm: Upgrade Chart",
"command": "helm upgrade"
},
{
"label": "Helm: Lint Chart",
"command": "helm lint ${ZED_WORKTREE_ROOT}"
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment