Skip to content

Commit aa53a60

Browse files
committed
Re-indent tip and screenshot
1 parent ede78f7 commit aa53a60

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

README.markdown

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,12 @@ If you need to expose a Swift type for use within Objective-C you can provide a
112112

113113
## Spacing
114114

115-
* Indent using 2 spaces rather than tabs to conserve space and help prevent line wrapping. Be sure to set this preference in Xcode.
115+
* Indent using 2 spaces rather than tabs to conserve space and help prevent line wrapping. Be sure to set this preference in Xcode as shown below:
116+
117+
![Xcode indent settings](screens/indentation.png)
118+
116119
* Method braces and other braces (`if`/`else`/`switch`/`while` etc.) always open on the same line as the statement but close on a new line.
120+
* Tip: You can re-indent by selecting some code (or ⌘A to select all) and then Control-I (or Editor\Structure\Re-Indent in the menu). Some of the Xcode template code will have 4-space tabs hard coded, so this is a good way to fix that.
117121

118122
**Preferred:**
119123
```swift
@@ -508,6 +512,7 @@ This style guide is a collaborative effort from the most stylish raywenderlich.c
508512
* [Matthijs Hollemans](https://github.com/hollance)
509513
* [Erik Kerber](https://github.com/eskerber)
510514
* [Christopher LaPollo](https://github.com/elephantronic)
515+
* [Ben Morrow](https://github.com/benmorrow)
511516
* [Andy Pereira](https://github.com/macandyp)
512517
* [Ryan Nystrom](https://github.com/rnystrom)
513518
* [Cesare Rocchi](https://github.com/funkyboy)

screens/indentation.png

63.4 KB
Loading

0 commit comments

Comments
 (0)