Select first the text you want to format and then press Ctrl+I.
Use Cmd+A first if you wish to format all text in the selected file.
Note: this procedure only re-indents the lines, it does not do any advanced formatting.
In XCode 12 beta:
The new key binding to re-indent is control+I.
Related Posts:
- Git is not working after macOS Update (xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools)
- Git is not working after macOS Update (xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools)
- How to update Xcode from command line
- Thread 1: EXC_BAD_ACCESS (code=1, address=0x0) standard C memory issue
- UIStackView before iOS 9.0
- How to auto-format code in Eclipse?
- Xcode 10 Error: Multiple commands produce
- ld: warning: directory not found for option’
- Code signing is required for product type ‘Application’ in SDK ‘iOS 10.0’ – StickerPackExtension requires a development team error
- Failed to create provisioning profile
- How to download Xcode DMG or XIP file?
- Xcode is not currently available from the Software Update server
- Xcode is not currently available from the Software Update server
- Xcode 10.2.1 Command PhaseScriptExecution failed with a nonzero exit code
- Xcode build failure “Undefined symbols for architecture x86_64”
- What’s the difference between ISO 8601 and RFC 3339 Date Formats?
- Shortcut to exit scale mode in VirtualBox
- Linker Command failed with exit code 1 (use -v to see invocation), Xcode 8, Swift 3
- Linker Command failed with exit code 1 (use -v to see invocation), Xcode 8, Swift 3
- Looking for a clear description of Excel’s .xlsx XML format
- A server with the specified hostname could not be found
- Python TypeError: not enough arguments for format string
- How do you format code in Visual Studio Code (VSCode)?
- Visual Studio /**/ comment shortcut?
- How do you update Xcode on OSX to the latest version?
- Ruby: Can I write multi-line string with no concatenation?
- Xcode 10, Command CodeSign failed with a nonzero exit code
- Collapse all methods in Visual Studio Code
- Mysql: Setup the format of DATETIME to ‘DD-MM-YYYY HH:MM:SS’ when creating a table
- How to format date in angularjs
- How do I format XML in Notepad++?
- Xcode – Warning: Implicit declaration of function is invalid in C99
- Current time formatting with Javascript
- C – The %x format specifier
- C++ on mac : linker command failed with exit code 1 (use -v to see invocation)
- Xcode couldn’t find any provisioning profiles matching
- symbol(s) not found for architecture x86_64 in xcode 10
- UITableView example for Swift
- How do I fix the indentation of selected lines in Visual Studio
- Command CompileSwift failed with a nonzero exit code in Xcode 10
- How can I find out if I have Xcode commandline tools installed?
- Always get build error : No such module ‘Alamofire’
- Compiling simple Hello World program on OS X via command line
- Processing Symbol Files in Xcode
- ValueError: zero length field name in format in Python2.6.6
- Can you Run Xcode in Linux?
- MySQL date formats – difficulty Inserting a date
- Is there a command for formatting HTML in the Atom editor?
- Eclipse keyboard shortcut to indent source code to the left?
- Xcode error: This device is no longer connected
- How do you display code snippets in MS Word preserving format and syntax highlighting?
- LLVM Compiler 2.0: Warning with “using namespace std;”
- Why am I getting the “Expression is not assignable” error?
- “Could not find any information for class named ViewController”
- .NET String.Format() to add commas in thousands place for a number
- Hotkey to open cmd with administration rights in current folder from Explorer
- Xcode 11.1: iostream’ file not found
- Could not insert new outlet connection: Could not find any information for the class named
- How to display hexadecimal numbers in C?
- Autoindent on Sublime Text
- How to read from input until newline is found using scanf()?
- Failed to launch macOS app built in Xcode
- Jupyter/IPython Notebooks: Shortcut for “run all”?
- Xcode: Could not locate device support files
- Storyboard warning: prototype table cells must have reuse identifiers
- How to copy/select a whole file or buffer in Emacs?
- Download Xcode simulator directly
- Terminating app due to uncaught exception ‘NSUnknownKeyException’
- Xcode: Download mp3 file
- Formatting a number with leading zeros in PHP
- Alert”Developer tools access needs to take control of another process for debugging to continue.Type your password to allow this.”
- Could not load NIB in bundle
- mailto link with HTML body
- Xcode error “Could not find Developer Disk Image”
- Send Ctrl-Alt-Del to nested RDP session