In Xcode4, can you change the characters used to render invisible?

I really prefer Visual Studio's way of displaying invisible ... simple dots for spaces and arrows for tabs. When you change the color to light gray, they provide excellent help when viewing the alignment of the code, etc., but they are barely noticeable, so you can leave them on all the time without getting up.

However, Xcode4 (and possibly other versions) instead displays some truncated “U” shape for a space and doesn’t seem to show anything for the tab, worse, as I mentioned in another post, Xcode doesn’t respect its own invisible color setting.

However, this question is about changing the default character used. I don’t care if it hack into the plist file or even dig into the contents of the Xcode application package (knowing that any updates will return it, if any), but, as of now, they are simply too unusable due to the fact that many of them prevent whitespace and thus shorten the code. (VS really nailed it.)

+7
source share
1 answer

The only way (I could figure out) to do this is to find the character that it uses (note that they change with the font), open the font in the font editor and copy the glyph insert that you want, occupied by the character you want to change. There are some free editors and some really expensive, I was able to use ttfedit http://mac.softpedia.com/get/Utilities/TTFEdit.shtml to find and change the Xcode character used for spaces to one of the dumbest fonts I have to make sure That it worked before I answered. Saved the font to the desktop, double-clicked and installed it, osx complains that it duplicates the font, say, eliminates the differences and selects your new file and says that it decided to disable the old font. The next time you open xcode, you will see a new character for the space.

Perhaps this is another way to do this, but it may be the only way without delving into the Xcode source to find where it decides to use the symbol (note that many use white diamond, but helvetica, for example, uses a curious floor console , you can see the template, but I didn’t).

+3
source

All Articles