Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to customize the indent style of XCode?

Tags:

For example, I'd like to not indent namespaces in C++ code, but the prefpane doesn't seem to have any place to make a decision of this granularity. Is there some hidden config file or something? Or am I just out of luck?

like image 670
Paul Wicks Avatar asked Jun 23 '09 21:06

Paul Wicks


People also ask

How do I change indentation in Xcode?

Choose Xcode > Preferences… from the menu bar (default shortcut: command-comma). Then click the “Text Editing” section. Then choose the “Indentation” tab.

How do I fix indentation in Swift?

Xcode tip #21: If you've copied code from elsewhere, such as Hacking with Swift or Stack Overflow, there's a good chance you'll paste in something with incorrect indentation. Xcode can fix this with one shortcut: select the code you want to fix, then press Ctrl+I to reindent it.


1 Answers

Apple's XCode documentation contains a full list of user preferences, many of them that don't have a corresponding UI. I'm not seeing anything that is namespace-specific however, so I think you might be out of luck.

However, I thought I'd pass along the preferences list in case it's useful.

like image 164
Naaff Avatar answered Oct 15 '22 12:10

Naaff