2

I recently started using Xcode for developing. It's pretty neat. By accident I happened to see one of its features. The feature only highlights the block of code I am currently working on. Other codes are covered with light grey. I do not know how to get that effect again. Can anybody help? Thanks!

mmcglynn
  • 7,668
  • 16
  • 52
  • 76
sammiwei
  • 3,140
  • 9
  • 41
  • 53

3 Answers3

2

You may be referring to the "focus ribbon" on the left side between the code and line numbers.

Refer to: https://developer.apple.com/library/mac/#documentation/ToolsLanguages/Conceptual/Xcode4UserGuide/Editing/Editing.html

(Figure 3-10)

Michael Robinson
  • 1,985
  • 2
  • 21
  • 31
2

You probably hovered your mouse over the line number bar like this:

enter image description here

Filip Radelic
  • 26,607
  • 8
  • 71
  • 97
  • http://apple.stackexchange.com/questions/75745/xcode-4-key-binding-for-focus-code-blocks-on-hover – unom Jan 03 '14 at 21:38
0

This is called Code Folding Focus.

If you want to turn it ON or OFF as you please, do as follows in Xcode/Preferences:

assigning custom key to code folding focus

Then, assign the key of your fits.

Juan Boero
  • 6,281
  • 1
  • 44
  • 62