Join Todd Perkins for an in-depth discussion in this video Configuring Xcode for app development, part of Programming for Non-Programmers: iOS 8.
- You may have noticed that when I showed my code up to this point it might look a little bit different from yours because I'm not using the default settings for code presentation. For example, I am using a different font, and different font size, and I also have line numbers. When you're working in Xcode you might want to customize the interface to be either more aesthetically pleasing to you or, easy to read, or easier to organize your code. You can find those setting under Xcode Preferences.
You can turn on Line numbers under the Text Editing tab. So, right next to Show, you can just check the box to show or hide Line numbers. For changing the fonts of your code, click Fonts & Colors. Now the default setting is called Default. So, if you want to create your own custom setting, choose Default and click the + button and choose Duplicate "Default". I'll just leave this at Default 2 and then press return on my keyboard to commit the change. With Default 2 selected, you can see that my font looks a lot smaller.
The font that I'm using for this course is called Monaco, and the size is 18. So, my goal here is to change all of the fonts in Xcode when I'm writing code, or looking at my feedback to fit the font that I want to use. So, I'm going to click inside under Source Editor, going to click inside the top Plain Text, and then press command "a" on my keyboard to select all these different types of fonts. Then I'm going to click the "T" button here, next to Font.
Then I'm going to choose the font I wanna use, which is Monaco, 18, and you can see the change applied. You can do the same thing under the Console section if you want to see the Debugger Console at the bottom of the screen, use the same fonts as well. So again, I can click that "T" button, choose Monaco, 18. So, you can modify these settings under Xcode Preferences. You can control the Line numbers in the Text Editing tab.
And you can control your fonts and colors through the Fonts & Colors tab.
If you find you'd like to learn more, see iOS App Development Essential Training, Foundations of Programming: Fundamentals, or any of the other programming courses in our library.
- Installing Xcode
- Creating an Xcode project
- Configuring the iOS Simulator
- Understanding variables
- Connecting visual objects to variables
- Understanding functions, methods, and selectors
- Connecting a button to a method
- Using conditional statements
- Setting up the user interface
- Connecting code elements to build an app