Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support .editorConfig for consistent code formatting #2626

Merged
merged 1 commit into from
Sep 3, 2024

Conversation

TTOzzi
Copy link
Contributor

@TTOzzi TTOzzi commented Sep 2, 2024

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
Copy link
Member

freak4pc commented Sep 3, 2024

Nice, thank you!

@freak4pc freak4pc merged commit 35d121a into ReactiveX:main Sep 3, 2024
6 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants