From c76490865b3806ad88a8a277c4f96eb77e00a7b2 Mon Sep 17 00:00:00 2001 From: Valentin Knabel Date: Wed, 26 Jun 2024 07:23:25 +0200 Subject: [PATCH] docs: format on type vknabel/vscode-swiftformat#42 (#42) --- README.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0445fd0..b59224f 100755 --- a/README.md +++ b/README.md @@ -57,9 +57,12 @@ let package = Package( | `apple-swift-format.path` | `[String] \| String` | platform dependent | `swift-format` | The location of the globally installed SwiftFormat (resolved with the current path if only a filename). | | `apple-swift-format.configSearchPaths` | `[String]` | `[".swift-format"]` | Possible paths for apple/swift-format config. | | -## Contributors +## FAQs -- Valentin Knabel, [@vknabel](https://github.com/vknabel), [@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