Answer the question
In order to leave comments, you need to log in
How to automatically wrap parenthesis in xcode?
How to make it so that after pressing the enter button
it was like this:
for (int n : mas)
{
}
for (int n : mas){
}
Answer the question
In order to leave comments, you need to log in
In general, I do not advise you to do this, format it as in the documentation. When you read poorly/weirdly formatted code, it's hard to focus on the logic, the eye constantly clings to all sorts of extra spaces or their absence in the right place, etc. Personally, it annoys me. If you wrote under C #, where it is customary, you do not need to drag these "traditions" into Swift / ObjectiveC. Swift (like all modern new languages) is built on the principles of conciseness and focus on business logic, and this is helped by standards and conventions. Therefore, if you expect other people to work with your code, treat them with respect, format the code as is customary in this environment.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question