Skip to content

Instantly share code, notes, and snippets.

@AnjanJ
Last active October 19, 2025 19:24
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}/*"
}
}
]
{
"theme": {
"mode": "system",
"light": "One Light",
"dark": "Aura Dark"
},
"ui_font_size": 16,
"buffer_font_size": 16,
"buffer_font_family": "Fira Code",
"buffer_font_features": {
"calt": true,
"liga": true
},
"buffer_line_height": {
"custom": 1.6
},
"tab_size": 2,
"hard_tabs": false,
"soft_wrap": "editor_width",
"preferred_line_length": 100,
"format_on_save": "on",
"remove_trailing_whitespace_on_save": true,
"ensure_final_newline_on_save": true,
"show_whitespaces": "selection",
"show_wrap_guides": true,
"relative_line_numbers": false,
"cursor_blink": true,
"lsp_highlight_debounce": 100,
"file_scan_exclusions": [
"**/.git",
"**/.svn",
"**/.hg",
"**/CVS",
"**/.DS_Store",
"**/Thumbs.db",
"**/node_modules",
"**/.next",
"**/_build",
"**/deps",
"**/.elixir_ls",
"**/tmp",
"**/dist",
"**/build",
"**/coverage",
"**/.cache",
"**/vendor/bundle",
"**/public/packs",
"**/public/assets"
],
"inlay_hints": {
"enabled": true,
"show_type_hints": false,
"show_parameter_hints": false,
"show_other_hints": true,
"edit_debounce_ms": 700,
"scroll_debounce_ms": 50
},
"git": {
"git_gutter": "tracked_files",
"inline_blame": {
"enabled": true,
"delay_ms": 600
}
},
"terminal": {
"font_size": 13,
"font_family": "JetBrains Mono",
"line_height": {
"custom": 1.4
},
"shell": {
"program": "zsh"
},
"copy_on_select": true,
"dock": "bottom",
"default_width": 640,
"default_height": 320,
"detect_venv": {
"on": {
"directories": [".env", "env", ".venv", "venv"],
"activate_script": "default"
}
}
},
"project_panel": {
"button": true,
"dock": "left",
"git_status": true,
"indent_size": 20,
"file_icons": true,
"folder_icons": true,
"auto_reveal_entries": true,
"auto_fold_dirs": true
},
"telemetry": {
"diagnostics": false,
"metrics": false
},
"features": {
"copilot": true,
"edit_prediction_provider": "copilot"
},
"agent": {
"default_model": {
"provider": "zed.dev",
"model": "claude-sonnet-4"
},
"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"
}
]
},
"languages": {
"Ruby": {
"tab_size": 2,
"hard_tabs": false,
"preferred_line_length": 120,
"format_on_save": "on",
"formatter": {
"external": {
"command": "rubocop",
"arguments": ["--stdin", "{buffer_path}", "--autocorrect", "--stderr", "--format", "json"]
}
},
"language_servers": ["ruby-lsp", "!solargraph"],
"inlay_hints": {
"enabled": false
}
},
"ERB": {
"tab_size": 2,
"format_on_save": "on",
"formatter": {
"external": {
"command": "erb-formatter",
"arguments": ["--stdin"]
}
}
},
"JavaScript": {
"tab_size": 2,
"hard_tabs": false,
"preferred_line_length": 100,
"format_on_save": "on",
"formatter": {
"external": {
"command": "prettier",
"arguments": ["--stdin-filepath", "{buffer_path}"]
}
},
"code_actions_on_format": {
"source.organizeImports": true,
"source.fixAll.eslint": true
}
},
"TypeScript": {
"tab_size": 2,
"hard_tabs": false,
"preferred_line_length": 100,
"format_on_save": "on",
"formatter": {
"external": {
"command": "prettier",
"arguments": ["--stdin-filepath", "{buffer_path}"]
}
},
"code_actions_on_format": {
"source.organizeImports": true,
"source.fixAll.eslint": true
},
"inlay_hints": {
"enabled": true,
"show_type_hints": true,
"show_parameter_hints": true
}
},
"TSX": {
"tab_size": 2,
"hard_tabs": false,
"preferred_line_length": 100,
"format_on_save": "on",
"formatter": {
"external": {
"command": "prettier",
"arguments": ["--stdin-filepath", "{buffer_path}"]
}
},
"code_actions_on_format": {
"source.organizeImports": true,
"source.fixAll.eslint": true
}
},
"JSX": {
"tab_size": 2,
"hard_tabs": false,
"preferred_line_length": 100,
"format_on_save": "on",
"formatter": {
"external": {
"command": "prettier",
"arguments": ["--stdin-filepath", "{buffer_path}"]
}
},
"code_actions_on_format": {
"source.fixAll.eslint": true
}
},
"Elixir": {
"tab_size": 2,
"hard_tabs": false,
"preferred_line_length": 98,
"format_on_save": "on",
"formatter": {
"external": {
"command": "mix",
"arguments": ["format", "--stdin-filename", "{buffer_path}", "-"]
}
},
"language_servers": ["elixir-ls", "..."]
},
"HEEx": {
"tab_size": 2,
"format_on_save": "on",
"formatter": {
"external": {
"command": "mix",
"arguments": ["format", "--stdin-filename", "{buffer_path}", "-"]
}
}
},
"JSON": {
"tab_size": 2,
"format_on_save": "on",
"formatter": "prettier"
},
"YAML": {
"tab_size": 2,
"format_on_save": "on"
},
"Markdown": {
"tab_size": 2,
"format_on_save": "off",
"soft_wrap": "editor_width"
},
"HTML": {
"tab_size": 2,
"format_on_save": "on",
"formatter": {
"external": {
"command": "prettier",
"arguments": ["--stdin-filepath", "{buffer_path}"]
}
}
},
"CSS": {
"tab_size": 2,
"format_on_save": "on",
"formatter": {
"external": {
"command": "prettier",
"arguments": ["--stdin-filepath", "{buffer_path}"]
}
}
},
"SCSS": {
"tab_size": 2,
"format_on_save": "on",
"formatter": {
"external": {
"command": "prettier",
"arguments": ["--stdin-filepath", "{buffer_path}"]
}
}
}
},
"lsp": {
"ruby-lsp": {
"initialization_options": {
"enabledFeatures": {
"codeActions": true,
"diagnostics": true,
"documentHighlights": true,
"documentLink": true,
"documentSymbols": true,
"foldingRanges": true,
"formatting": true,
"hover": true,
"inlayHint": false,
"onTypeFormatting": true,
"selectionRanges": true,
"semanticHighlighting": true,
"completion": true,
"codeLens": false,
"debugging": true
}
}
},
"typescript-language-server": {
"initialization_options": {
"preferences": {
"includeInlayParameterNameHints": "all",
"includeInlayFunctionParameterTypeHints": true,
"includeInlayVariableTypeHints": true,
"includeInlayPropertyDeclarationTypeHints": true,
"includeInlayFunctionLikeReturnTypeHints": true,
"includeInlayEnumMemberValueHints": true,
"importModuleSpecifierPreference": "shortest",
"quotePreference": "single"
},
"tsserver": {
"maxTsServerMemory": 12288
}
}
},
"eslint": {
"settings": {
"codeActionOnSave": {
"mode": "fixAll",
"rules": ["import/order", "import/first", "import/no-duplicates"]
},
"experimental": {
"useFlatConfig": false
},
"problems": {
"shortenToSingleLine": false
},
"validate": "on",
"run": "onType"
}
},
"elixir-ls": {
"settings": {
"dialyzerEnabled": true,
"fetchDeps": true,
"suggestSpecs": false,
"signatureAfterComplete": true,
"enableTestLenses": true
}
},
"tailwindcss-language-server": {
"settings": {
"includeLanguages": {
"erb": "html",
"eex": "html",
"heex": "html"
},
"experimental": {
"classRegex": [["class[:]\\s*\"([^\"]*)\"", "([a-zA-Z0-9\\s\\-:]+)"]]
}
}
}
},
"tasks": {
"variables": {}
},
"auto_update": true,
"file_types": {
"Gemfile": ["Ruby"],
"Guardfile": ["Ruby"],
"Rakefile": ["Ruby"],
"*.rake": ["Ruby"],
"*.gemspec": ["Ruby"],
"*.ru": ["Ruby"],
"*.arb": ["Ruby"],
"*.jbuilder": ["Ruby"],
"*.thor": ["Ruby"],
"Thorfile": ["Ruby"],
"Fastfile": ["Ruby"],
"Podfile": ["Ruby"],
"Vagrantfile": ["Ruby"],
"Brewfile": ["Ruby"],
"*.erb": ["ERB"],
"*.html.erb": ["ERB"],
"*.heex": ["HEEx"],
"*.leex": ["HEEx"]
},
"base_keymap": "VSCode",
"enable_language_server": true,
"show_call_status_icon": false,
"autosave": {
"after_delay": {
"milliseconds": 1000
}
},
"confirm_quit": false,
"restore_on_startup": "last_workspace",
"extend_comment_on_newline": true,
"use_autoclose": true,
"show_completion_documentation": true,
"search": {
"whole_word": false,
"case_sensitive": false,
"regex": false
},
"scroll_beyond_last_line": "one_page",
"scrollbar": {
"show": "auto",
"cursors": false,
"git_diff": true,
"search_results": true,
"selected_symbol": true,
"diagnostics": "all"
},
"jsx_tag_auto_close": {
"enabled": true
},
"code_actions_on_format": {
"source.fixAll": true,
"source.organizeImports": true
},
"indent_guides": {
"enabled": true
}
}
[
{
"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