Skip to content
This repository has been archived by the owner on Mar 1, 2022. It is now read-only.

Configurations

Jan Jurzitza edited this page Dec 7, 2016 · 1 revision

workspace-d (>=2.9.0) can automatically load settings for DScanner and dfmt from your OS's config folder. It will print out the config folders at startup. If these configurations exist they will override any settings the clients specify.

DScanner

workspace-d will use the dscanner.ini file in your config folder if it exists. It is just passed to DScanner as config argument, so it uses the default dscanner.ini specification.

dfmt

workspace-d will use the dfmt.json file in your config folder if it exists. It translates to console arguments and is defined like this:

{
	"align_switch_statements": true | false,
	"brace_style": "allman" | "otbs" | "stroustrup",
	"end_of_line": "cr" | "lf" | "crlf",
	"indent_size": number (unsigned),
	"indent_style": "tab" | "space",
	"max_line_length": number (unsigned),
	"soft_max_line_length": number (unsigned),
	"outdent_attributes": true | false,
	"space_after_cast": true | false,
	"split_operator_at_line_end": true | false,
	"tab_width": number (unsigned),
	"selective_import_space": true | false,
	"compact_labeled_statements": true | false,
	"template_constraint_style": true | false
}

Other keys will get ignored, invalid values will abort parsing mid-config and leave previous values (in order described above) in config.

Clone this wiki locally