9

Does anyone know how to get the version editor in Xcode 4 to ignore whitespace?

Update:

I sent in a bug report. The bug report was closed as a duplicate. The state of the original bug report is closed. In the latest version of Xcode (4.3) I still cannot find a way to remove whitespace checking.

pkamb
  • 33,281
  • 23
  • 160
  • 191
rp90
  • 854
  • 1
  • 9
  • 20

3 Answers3

24

Solution:

Right click in the gutter between both editors and select "Hide Whitespaces".

enter image description here

I've also tried modifying git config (git config add core.whitespace) but that didn't work.

Paul R
  • 208,748
  • 37
  • 389
  • 560
Felipe Baytelman
  • 544
  • 3
  • 12
  • 2
    This should be the selected answer – Andres Canella Jun 10 '14 at 07:51
  • 2
    Heh – I thought this no longer worked in Xcode 9.2. It does, but: I only get the menu if I right-click _anywhere **except** for the gutter between the panes_. Right click on either pane, and the option to "hide white space" will be shown. – Benjohn Feb 06 '18 at 10:28
1

The Xcode manual page referencing the Visual Editor doesn't mention any option regarding whitespace.

However, check if you have the "Comparison and Differencing Options" in Xcode 4, which should allow you to specify what you want to ignore.

Comparison and Differencing Options

pkamb
  • 33,281
  • 23
  • 160
  • 191
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • This image is from the old Xcode. Xcode 4 preference panel does not have these options – rp90 Jan 26 '12 at 17:07
  • @rp90 that is what I feared. That would be a shame, then, if that option wasn't available at all. – VonC Jan 26 '12 at 18:27
0

I sent in a bug report. The bug report was closed as a duplicate. The state of the original bug report is closed. In the latest version of Xcode (4.3) I still cannot find a way to remove whitespace checking.

pkamb
  • 33,281
  • 23
  • 160
  • 191
rp90
  • 854
  • 1
  • 9
  • 20