{ "$schema": "http://json-schema.org/draft-07/schema#", "$id": "https://plugins.dprint.dev/dprint/dprint-plugin-toml/0.0.0/schema.json", "type": "object", "definitions": { "useTabs": { "description": "Whether to use tabs (true) or spaces (false).", "type": "boolean", "default": false, "oneOf": [{ "const": true, "description": "" }, { "const": false, "description": "" }] }, "newLineKind": { "description": "The kind of newline to use.", "type": "string", "default": "lf", "oneOf": [{ "const": "auto", "description": "For each file, uses the newline kind found at the end of the last line." }, { "const": "crlf", "description": "Uses carriage return, line feed." }, { "const": "lf", "description": "Uses line feed." }, { "const": "system", "description": "Uses the system standard (ex. crlf on Windows)." }] }, "comment.forceLeadingSpace": { "description": "Whether to force a leading space in a comment.", "type": "boolean", "default": true, "oneOf": [{ "const": true, "description": "Adds a leading space if there is none (ex. `# comment`)" }, { "const": false, "description": "Doesn't force a space to be added and maintains what was done (ex. `#comment`)" }] }, "cargo.applyConventions": { "description": "Whether to apply sorting to a Cargo.toml file.", "type": "boolean", "default": true, "oneOf": [{ "const": true, "description": "" }, { "const": false, "description": "" }] } }, "properties": { "locked": { "description": "Whether the configuration is not allowed to be overriden or extended.", "type": "boolean" }, "lineWidth": { "description": "The width of a line the printer will try to stay under. Note that the printer may exceed this width in certain cases.", "default": 120, "type": "number" }, "indentWidth": { "description": "The number of characters for an indent.", "default": 2, "type": "number" }, "useTabs": { "$ref": "#/definitions/useTabs" }, "newLineKind": { "$ref": "#/definitions/newLineKind" }, "comment.forceLeadingSpace": { "$ref": "#/definitions/comment.forceLeadingSpace" }, "cargo.applyConventions": { "$ref": "#/definitions/cargo.applyConventions" } } }