![]() Whatever you call it, you can put the right amount of space at the beginning of each line by selecting it, then pressing ⌃I. I often refer to this as “formatting code,” but it’s labeled as “Re-Indent” in Xcode. press ⏎ ( Enter) to select the auto-complete suggestion.press ⇥ ( Tab) to finish the current word.You can cycle through the list with the up/down arrows, which is probably obvious. Type some code, use either ⎋ or ⌃Space to toggle auto-complete (I’m hooked on Escape), and Xcode will offer a few intelligent suggestions to complete your code. Show/hide completions: ⎋ ( Escape) OR ⌃Space ( Control + Space) When you’re trying to find specific text in your project, ⌘⇧F is the way to do it.ġ0. Find text in Project: ⇧⌘F ( Shift + Command + F) It’s generally only useful to me when I’m working in a storyboard, so I use ⌥⌘0 to toggle it when I switch between storyboard and code files.ĩ. The pane on the right, called Utilities, can also get in the way when not in use. Show/Hide Utilities: ⌥⌘0 ( Option + Command + 0) I keep it closed almost all the time, then open it again with ⌘0 when I need to add a new file to my project or to navigate the project structure as I hunt for a file.Ĩ. ![]() The left pane, known as the Navigator, can get in the way when you’re not navigating. And when you’re finished debugging, hide the debug area with the same shortcut.ħ. In the console you’ll see anything you’ve logged as your app runs. The variables view shows the state of all the variables in scope when your app stops on a breakpoint. Show the debug area – which contains the variables view and console – with ⇧⌘Y. Show/Hide Debug Area: ⇧⌘Y ( Shift + Command + Y) If a clean fails to solve your problem, you might need to show the debug area…Ħ. Clean the project ( ⇧⌘K) and run it again, and maybe – just maybe – your code is actually right. This one is useful when you’re pretty sure the code you wrote is correct, but when you run it, something is broken.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |