ReactiveX / RxSwift

Reactive Programming in Swift
MIT License
24.37k stars 4.17k forks source link

Support .editorConfig for consistent code formatting #2626

Closed TTOzzi closed 1 month ago

TTOzzi commented 1 month ago

Starting with Xcode 16, .editorConfig is supported for consistent code formatting.

New Features in Xcode 16 Beta Added support for EditorConfig. The editor now respects indentation settings given in .editorconfig files. Xcode supports the following settings: indent_style, tab_width, indent_size, end_of_line, insert_final_newline, max_line_length, and trim_trailing_whitespace. See https://editorconfig.org/ for more information. Settings from .editorconfig files normally take precedence over settings given in the “Text Editing” section of View > Inspectors > File for a file or group. This can be disabled by unchecking the “Prefer Settings from EditorConfig” checkbox on the Indentation tab of Xcode > Settings > Text Editing. (20796230)

This will allow developers who use a 2-space indentation setting in Xcode Editor to easily modify RxSwift code, which uses a 4-space indentation, without needing to change their configurations. While there may not be many significant code changes to RxSwift going forward, it would still be nice to have this support.

freak4pc commented 1 month ago

Nice, thank you!