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

Leading whitespace on newlines #713

Open
SENTINELITE opened this issue Apr 13, 2024 · 2 comments
Open

Leading whitespace on newlines #713

SENTINELITE opened this issue Apr 13, 2024 · 2 comments

Comments

@SENTINELITE
Copy link

Xcode's default spacing for newlines ( "empty" lines) contains 4x leading spaces. I tried digging through all the options & wasn't able to find a way to use swift-format, & maintain that behavior.

Example Code (Take a look at lines 2 & 4.

    func XO() {}

    func xp() {}
    //What I Want

Code export

@ahoppen
Copy link
Contributor

ahoppen commented Apr 23, 2024

Tracked in Apple’s issue tracker as rdar://126948449

@GeorgeLyon
Copy link

+1, I realize this isn't a priority for open source, but it would be great to be able to create a "doesn't conflict with control-I in Xcode" `.swift-format"

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

No branches or pull requests

3 participants