Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"tab_size" setting does not follow default #21777

Closed
1 task done
10Nates opened this issue Dec 10, 2024 · 1 comment
Closed
1 task done

"tab_size" setting does not follow default #21777

10Nates opened this issue Dec 10, 2024 · 1 comment
Labels
json JSON data format support setting Feedback for preferences, configuration, etc support User support (non-defect troubleshooting, documentation, etc)

Comments

@10Nates
Copy link

10Nates commented Dec 10, 2024

Check for existing issues

  • Completed

Describe the bug / provide steps to reproduce it

  1. Remove "tab_size" from config file
  2. Tabs are not size 4, but rather size 2.

Environment

Zed: v0.164.2 (Zed)
OS: macOS 15.1.1
Memory: 64 GiB
Architecture: aarch64

If applicable, add mockups / screenshots to help explain present your vision of the feature

Screenshot 2024-12-09 at 6 43 55 PM Screenshot 2024-12-09 at 6 44 04 PM

If applicable, attach your Zed.log file to this issue.

Not applicable

@10Nates 10Nates added admin read Pending admin review bug [core label] triage Maintainer needs to classify the issue labels Dec 10, 2024
@notpeter
Copy link
Member

The default tab_size in default.json:

"tab_size": 4,

Can be overriden by language specific settings (E.g. for json, jsonc, markdown):


To specify a preference you can use an .editorconfig or something like:

  "languages": {
    "JSON": {
      "tab_size": 4
    }
  }

@notpeter notpeter added json JSON data format support setting Feedback for preferences, configuration, etc support User support (non-defect troubleshooting, documentation, etc) and removed bug [core label] triage Maintainer needs to classify the issue admin read Pending admin review labels Dec 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
json JSON data format support setting Feedback for preferences, configuration, etc support User support (non-defect troubleshooting, documentation, etc)
Projects
None yet
Development

No branches or pull requests

2 participants