1 00:00:00,000 --> 00:00:02,000 [? Music ?] [Treehouse presents] 2 00:00:02,000 --> 00:00:05,460 [Quick Tips] [Xcode Tips & Tricks in iOS with Amit Bijilani] 3 00:00:05,460 --> 00:00:08,630 Hi, I'm Amit, and in this Treehouse Quick Tip, 4 00:00:08,630 --> 00:00:10,740 we will learn a few tips and tricks 5 00:00:10,740 --> 00:00:13,500 of Xcode to make your development workflow 6 00:00:13,500 --> 00:00:15,410 a bit more efficient. 7 00:00:15,410 --> 00:00:19,970 We will primarily learn some keyboard shortcuts. 8 00:00:19,970 --> 00:00:21,880 There are some very basic shortcuts 9 00:00:21,880 --> 00:00:25,130 that help you optimize your workspace. 10 00:00:25,130 --> 00:00:27,860 To quickly show and hide the navigation area, 11 00:00:27,860 --> 00:00:32,740 you can use the shortcut command 0. 12 00:00:32,740 --> 00:00:37,070 To quickly switch between the tabs in the navigation area, 13 00:00:37,070 --> 00:00:41,070 you can use command and a number. 14 00:00:41,070 --> 00:00:45,330 For example, to go on to the next tab, which is the symbol navigator, 15 00:00:45,330 --> 00:00:48,600 I can use the shortcut command 2. 16 00:00:48,600 --> 00:00:52,340 To go to the find tab, use command 3. 17 00:00:52,340 --> 00:00:56,820 The issues tab, command 4. 18 00:00:56,820 --> 00:01:00,990 The debugger tab, command 5. 19 00:01:00,990 --> 00:01:04,260 The breakpoints tab, command 6. 20 00:01:04,260 --> 00:01:09,630 And lastly, command 7, which gives you all of your archives, 21 00:01:09,630 --> 00:01:12,000 or your log navigator. 22 00:01:12,000 --> 00:01:17,400 Command and a number will make you switch the tabs. 23 00:01:17,400 --> 00:01:19,840 To show and hide the utility area, 24 00:01:19,840 --> 00:01:24,850 command option 0. 25 00:01:24,850 --> 00:01:28,050 To bring up the open quickly feature, which is one of the most 26 00:01:28,050 --> 00:01:32,690 handy features in Xcode, use command shift 0, 27 00:01:32,690 --> 00:01:36,940 and this basically helps you find anything within your project. 28 00:01:36,940 --> 00:01:40,440 For example, I type "location manager," 29 00:01:40,440 --> 00:01:43,080 and location manager could be a class 30 00:01:43,080 --> 00:01:47,600 within the frameworks, or it could be a property 31 00:01:47,600 --> 00:01:51,680 in one of my own classes. 32 00:01:51,680 --> 00:01:56,360 For example, here is location manager defined in my view controller.h, 33 00:01:56,360 --> 00:02:00,610 so that is open quickly if you want to find something. 34 00:02:00,610 --> 00:02:03,840 Now, we know that we can use the shortcut 35 00:02:03,840 --> 00:02:07,670 command click, and this will basically open up 36 00:02:07,670 --> 00:02:13,670 the definition of that class right in the same editor. 37 00:02:13,670 --> 00:02:18,680 But what if you wanted to open up the definition in the assistant editor 38 00:02:18,680 --> 00:02:20,520 and not the same editor? 39 00:02:20,520 --> 00:02:23,500 You can use the shortcut command option click, 40 00:02:23,500 --> 00:02:27,600 and this will open up the definition side by side. 41 00:02:27,600 --> 00:02:31,810 If I try the definition for location manager, 42 00:02:31,810 --> 00:02:36,910 it will give me a choice, and then I can open up my view controller.m 43 00:02:36,910 --> 00:02:39,320 to see where it's defined. 44 00:02:39,320 --> 00:02:41,810 And of course, to go back to the standard editor, 45 00:02:41,810 --> 00:02:46,200 you use the shortcut command enter. 46 00:02:46,200 --> 00:02:50,950 And finally, for searching, let me go to my detail. 47 00:02:50,950 --> 00:02:53,980 For searching, you can highlight something 48 00:02:53,980 --> 00:02:57,380 and then use the shortcut command E, 49 00:02:57,380 --> 00:03:00,160 and then if you don't want to do multiple searches on that, 50 00:03:00,160 --> 00:03:09,520 just use command G, and it will search multiple times. 51 00:03:09,520 --> 00:03:13,100 These few tips are just the tip of the iceberg, 52 00:03:13,100 --> 00:03:16,180 pun intended, but by incorporating them, 53 00:03:16,180 --> 00:03:19,500 your development workflow will become faster.