nicklockwood / SwiftFormat

A command-line tool and Xcode Extension for formatting Swift code
MIT License
7.77k stars 629 forks source link

"Max Width" can't be set #1512

Closed houmie closed 1 year ago

houmie commented 1 year ago

Please see the screenshot below. I'm not able to set values for "Max Width" for the line. Even if I unclick wrap. Am I missing something? Thanks

Screenshot 2023-08-19 at 11 28 28
nicklockwood commented 1 year ago

Is the "infer options" checkbox at the top of the screen checked? If so, turn it off.

houmie commented 1 year ago

Yes, that worked perfectly. What does that "infer options" mean? Like a starting template? It's not very clear.

nicklockwood commented 1 year ago

It looks at the existing file and tries to guess what options you are already using.

houmie commented 1 year ago

Thanks. Great work.