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

[Feature] Specify indent size / tab width in VSCode settings and/or editorconfig #6065

Closed
o-l-a-v opened this issue Jul 20, 2024 · 2 comments

Comments

@o-l-a-v
Copy link

o-l-a-v commented Jul 20, 2024

Feature Request

Is your feature request related to a problem? Please describe.

Scoop has requirements to JSON indent type (spaces) and size (4) which could easily be enforced inside .vscode\settings.json and/or with EditorConfig.

VSCode settings

Example:

{
  ...
  "[json]": {
    "editor.autoIndent": "full",
    "editor.defaultFormatter": "vscode.json-language-features",
    "editor.detectIndentation": false,
    "editor.formatOnSave": true,
    "editor.indentSize": 4
  },
  ...
}
EditorConfig

Describe the solution you'd like

Add config to overwrite JSON indent type (spaces) and size (4) to all Scoop repositories.

Describe alternatives you've considered

None yet.

@niheaven
Copy link
Member

There's an .editorconfig file w/ indent size 4 already.

@o-l-a-v
Copy link
Author

o-l-a-v commented Jul 22, 2024

Yes, wow, how did I not see that. Maybe because it does not actually override my own VSCode preferences for JSON.

Will look more into how EditorConfig works, or doesn't.


Edit: For future reference I was hit by the following issues:

My fix was to add in VSCode settings.json: editor.indentSize = "tabSize".

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

No branches or pull requests

2 participants