StyLua icon indicating copy to clipboard operation
StyLua copied to clipboard

VSCode Extension: Config options in VSCode global settings.json

Open JohnnyMorganz opened this issue 8 months ago • 0 comments

Discussed in https://github.com/JohnnyMorganz/StyLua/discussions/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>

JohnnyMorganz avatar Apr 21 '25 15:04 JohnnyMorganz