From 2b4b4e915ffa42062672b1f08486af1be50b5fc1 Mon Sep 17 00:00:00 2001 From: Valentin Knabel Date: Sat, 22 Jun 2024 17:02:42 +0200 Subject: [PATCH] docs: format on type #42 (#46) --- README.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ff8fda7..16c6699 100755 --- a/README.md +++ b/README.md @@ -51,9 +51,12 @@ let package = Package( | `swiftformat.options` | `[String]` | `[]` | Additional [options for SwiftFormat](https://github.com/nicklockwood/SwiftFormat#options). | | `swiftformat.configSearchPaths` | `[String]` | `[".swiftformat"]` | Possible paths for SwiftFormat config. | -## Contributors +## FAQs -- Valentin Knabel, [@vknabel](https://github.com/vknabel), dev@vknabel.com, [@vknabel](https://twitter.com/vknabel) on Twitter +### How do I enable formatting on type? + +To enable formatting on while typing code without saving, simply enable the setting `"editor.formatOnType": true`. +In case you only want to enable it when editing Swift files, you can override as [`[swift]` language specific setting](https://code.visualstudio.com/docs/getstarted/settings#_language-specific-editor-settings). ## License