You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/CONTRIBUTING.md
+21-6Lines changed: 21 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,10 +2,25 @@
2
2
3
3
Pull requests are welcome! We only ask that you follow these steps:
4
4
5
-
1. If adding a new tip, be sure it is specific to using Xcode, not a general coding tip.
6
-
2. Conform to the existing pattern for listing a tip.
5
+
1. If adding a new tip, be sure it is specific to **using Xcode**, not a general coding tip.
6
+
1. Conform to the existing pattern for listing a tip.
7
7
1. Place it under the correct category.
8
-
2. Give it a brief but descriptive heading.
9
-
3. Provide a concise explanation.
10
-
4. Link to the original source (a blog post, a tweet, etc.), if any, to give credit to the person who shared it.
11
-
5. If there isn't a post or a tweet, and it is just a tip you want to share, credit yourself! 😄
8
+
1. Give it a brief but descriptive heading.
9
+
1. Provide a concise explanation.
10
+
1. Keyboard shortcuts should be **bold** and use glyph symbols like ⌘ and ⇧ rather than symbol names like `cmd` and `shift`, etc. See the table below and follow existing examples.
11
+
1. Link to the original source:
12
+
1. A blog post, a tweet, etc. to give credit to the person who shared it.
13
+
1. If there isn't a post or a tweet, and it is just a tip you want to share, credit yourself! 😄
Open the file you want. Press `cmd L`, type a line number and Xcode will jump directly to that line.
132
+
Open the file you want. Press **⌘L**, type a line number and Xcode will jump directly to that line.
133
133
134
134
### Reindenting/Formatting code
135
135
136
-
Press `ctrl I` to apply Xcode's indentation and formatting.
136
+
Press **⌃I** to apply Xcode's indentation and formatting.
137
137
138
138
### Adding comments quickly
139
139
140
-
Use `cmd /` to toggle comments for the current line or selection. Use `cmd option /`, pressed directly before a method to have Xcode generate a documentation comment.
140
+
Use **⌘/** to toggle comments for the current line or selection. Use **⌥⌘/**, pressed directly before a method to have Xcode generate a documentation comment.
Some great shortcuts (e.g. `cmd shift O` for Open Quickly) are next to useless shortcuts (`cmd shift P`, for the never times you want to print code.) It takes only seconds to remove unhelpful keys, and you can even remap things like `cmd P` to resuming SwiftUI's preview.
158
+
Some great shortcuts (e.g. **⇧⌘O** for Open Quickly) are next to useless shortcuts (**⇧⌘P**, for the never times you want to print code.) It takes only seconds to remove unhelpful keys, and you can even remap things like **⌘P** to resuming SwiftUI's preview.
Press `cmd +` to increase and `cmd -` to decrease.
164
+
Press **⌘+** to increase and **⌘-** to decrease.
165
165
166
166
### Move cursor to the top or bottom of the file
167
167
168
-
Press `cmd UpArrow`to move to the top of the file. Press `cmd DownArrow` to move to the bottom of the file.
168
+
Press **⌘↑**to move to the top of the file. Press **⌘↓** to move to the bottom of the file.
169
169
170
170
### Show and hide debug area
171
171
172
-
Press `cmd shift Y` to open and close the debug area.
172
+
Press **⌘⇧Y** to open and close the debug area.
173
173
174
174
### Generating an interface file
175
175
176
-
Press `cmd ctrl UpArrow` to display a generated interface, showing properties, function signatures, and comments for a type. Press it again, to jump to tests for that file if they exist.
176
+
Press **⌃⌘⇧** to display a generated interface, showing properties, function signatures, and comments for a type. Press it again, to jump to tests for that file if they exist.
The assistant editor is very useful for navigating around while remaining at your original position:
230
230
231
-
- Use `cmd option ,` to open the current location in the neighbouring editor
232
-
- Hold `cmd ctrl option`and click on any method to jump to that method in the neighbouring editor (`cmd ctrl` opens in the current editor)
233
-
-`cmd ctrl UpArrow`to switch between associated files, and `cmd ctrl option UpArrow` to do so using the neighbouring editor
234
-
-`cmd ctrl LeftArrow`and `cmd ctrl RightArrow`to move back and forward through navigation history, add `option` for their neighbouring editor counterparts
231
+
- Use **⌘⌥,** to open the current location in the neighbouring editor
232
+
- Hold **⌘⌃⌥**and click on any method to jump to that method in the neighbouring editor (**⌘⌃** opens in the current editor)
233
+
-**⌘⌃↑**to switch between associated files, and **⌘⌃⌥↑** to do so using the neighbouring editor
234
+
-**⌘⌃←**and **⌘⌃→**to move back and forward through navigation history, add **⌥** for their neighbouring editor counterparts
Use `cmd ctrl option G` to re-run your last test. [Jon Reid](https://twitter.com/qcoding) has a name for this making it easier to remember: “smash go!”
260
+
Use **⌃⌥⌘G** to re-run your last test. [Jon Reid](https://twitter.com/qcoding) has a name for this making it easier to remember: “smash go!”
Go to the Product menu, hold down `option`, then click Test. Inside the Info tab, click Options then check Randomize Execution Order to run tests in a different order every time.
266
+
Go to the Product menu, hold down **⌥**, then click Test. Inside the Info tab, click Options then check Randomize Execution Order to run tests in a different order every time.
Make a new StoreKit Config File, and add your IAP. Now go to the Product menu, hold down Option, and click Run. From the Options tab of the window, change StoreKit Config, and now you'll use the test IAP.
278
+
Make a new StoreKit Config File, and add your IAP. Now go to the Product menu, hold down **⌥**, and click Run. From the Options tab of the window, change StoreKit Config, and now you'll use the test IAP.
0 commit comments