From fe5fb6037478e710e51cb3b058a3bd80f7d58bb5 Mon Sep 17 00:00:00 2001 From: Jon Parise Date: Fri, 23 Aug 2024 14:13:59 -0400 Subject: [PATCH] editorconfig: add swift style Xcode 16 introduces support for EditorConfig-based editor settings. Many other editors also support EditorConfig. In particular, this enables trailing whitespace trimming for Swift source files. --- .editorconfig | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.editorconfig b/.editorconfig index 58e3649ad..d305bd294 100644 --- a/.editorconfig +++ b/.editorconfig @@ -7,3 +7,8 @@ indent_style = space [bash-preexec.sh] indent_size = 4 indent_style = space + +[*.swift] +indent_size = 4 +indent_style = space +trim_trailing_whitespace = true