Skip to content

VSCode Extension: Config options in VSCode global settings.json #978

Description

@JohnnyMorganz

Discussed in #961

Originally posted by trymeouteh March 13, 2025
Please add the config options in the VSCode global settings.json. When these options are set, StyLua will always use these options by default unless the extension finds a stylua.toml file in the workspace.

Example of this in settings.json

{
	"stylua.syntax": "All",
	"stylua.column_width": 120,
	"stylua.line_endings": "Unix",
	"stylua.indent_type": "Tabs",
	"stylua.indent_width": 4,
	"stylua.quote_style": "AutoPreferDouble",
	"stylua.call_parentheses": "Always",
	"stylua.space_after_function_names": "Never",
	"stylua.collapse_simple_statement": "Never"
}
```</div>

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestextensionConcerns the VSCode extension

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions