UI Bug with Xcode's invisible characters in documentation comments

Feedback number: FB12128126

I like to display invisible characters in my text editors/IDEs because I want to know if the spaces I’m seeing are spaces or tabs. I also like to be able to tell immediately if I’m seeing multiple spaces or not.

Here is an example of what that looks like. Notice the grey dots between words. screenshot of xcode showing invisible spaces rendered visible

In Xcode, you can find this in the Editor menu labeled as Invisibles.

screenshot snippet of the editor menu in xcode showing the invisibles item

Today I noticed that when using documentation comments, the invisibles are misaligned and lay on top of the characters instead of between them. I submitted a feedback, but I’m not sure it will ever be addressed so I wrote this post in case someone else runs into the same thing.

screenshot of xcode showing invisibles in documentation comment misaligned layout

misaligned invisibles in documentation comment.

How to set iTerm2 window and tab bar to show current path

I tend not to use tabs and instead have a bunch of windows so I originally wanted to know how I could set my window title bar to show the current path, but in this post I’ll share how to do both in iTerm2.

Here is a screenshot of the iTerm2 Preferences window showing Profiles -> Window.

Screenshot of iTerm2 Preferences Window showing how to set custom window title and custom tab title

For custom window title you’ll set \(currentTab.currentSession.path).

For custom tab title you’ll set \(currentSession.path).

And that’s it!

Here’s what it would look like in iTerm2:

Screenshot of iTerm2 with custom window and tab titles

And here’s the Stack Overflow question I found that solved this for me. Wanted to blog about it so that I remember how to do this in the future.