Home arrow XCode Tips
XCode Tips
Indent a Source Code in XCode PDF
Friday, 15 November 2013
If you want to move a selected block of code to the left use:

  Cmd + [

If you want to move a selected block of code to the right use:

  Cmd + ]

If you want to reindent a line or a selected block of code use:

  Ctrl + i

 
Install Command Line Tools in XCode 5 on OSX Mavericks PDF
Friday, 15 November 2013
You might want/need XCode's Command Line Tools in order to install/update Mac Ports.

You will notice on OSX Mavericks with XCode 5.x you do not have "Command Line Tools" option within XCode Preferences so in order to install Command Line Tools run from terminal:

  sudo xcode-select --install

A window will appear prompting to download and install Command Line Tools.

 
Shortcut to Display Documentation in XCode PDF
Saturday, 05 November 2011
If you program in XCode and you need right away to quickly display the documentation window then press:

Cmd + Alt + ?      (which on some keyboards is Cmd + Alt + Shift + /).

 
Show Line Numbers in XCode PDF
Saturday, 05 November 2011
Sometimes it is useful to see line number for every Objective C, C / C++ or Java source code when programming using XCode IDE. To activate line numbers display in XCode go to Preferences -> Text Editing -> Editing (tab) and check: Show Line Numbers.

 
Show Console when a Program Run in XCode PDF
Saturday, 05 November 2011
If you build a console-based application and you want to see the console when you run an aplication from XCode after building the app then go to (in XCode):   Preferences -> Behaviour -> Run Completes and change Hide debugger to Show debugger with Console View.

This is for XCode 4.x.



 

Other BSD Systems

OpenBSD

Misc

Solaris

Polls

Best BSD firewall?