Need help with better-xcode-ibeam-cursor?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

egold
436 Stars 29 Forks 50 Commits 1 Opened issues

Description

Better i-bar (text cursor) for Xcode for dark background / light text color themes.

Services available

!
?

Need anything else?

Contributors list

# 145,116
Objecti...
Shell
Ruby
Xcode
16 commits
# 222,019
Xcode
xcode-e...
xcode-p...
Swift
9 commits
# 213,812
Python
HTML
slack-a...
gitlab
3 commits
# 622,302
Shell
1 commit
# 633,219
Shell
1 commit
# 499,686
JavaScr...
Shell
CSS
1 commit
# 237,512
Swift
window-...
xmonad
macOS
1 commit
# 50,763
Go
k8s
xmonad
mac
1 commit
# 608,150
Shell
Sublime...
1 commit
# 76,499
Shell
Rust
Haxe
coreuti...
1 commit

Better Xcode ibeam cursor

Better i-beam (text cursor) for Xcode for dark background / light text color themes.

Important note for Xcode 8 users!

In Xcode 8, Apple took away plugins, and obfuscated a lot of things from us. For instance, it's no longer possible to replace the i-beam cursor with a simple file swap (Xcode 6 and lower) or even Assets.car hacking (Xcode 7). Feel free to investigate and try to find a workaround, and submit a pull request. If you want to follow this repository via starring / watching, perhaps subsequent versions of Xcode will make life easier on those of us who want to customize the software we spend so many hours in every day! If this happens, I'm happy to update the repository to support new ways of updating the i-beam. Until then, good luck & enjoy hunting for that cursor!

Important note for Xcode 7.3+ users!

The file that controls the i-beam cursor is no longer a flat .tiff file, but rather part of an assets bundle called Assets.car. Please see issue #16's thread for a manual workaround. Thanks go out to @cjheng, @allen-zeng, @sokobania, and @ebaker355 for helping find and solve the issue. I'm looking forward to getting this working in an automated way in the future.

Directions for pre-7.3 versions of Xcode

Directions:

The easy way
curl -L https://raw.githubusercontent.com/egold/better-xcode-ibeam-cursor/master/install.sh | bash
The manual way
For Xcode 7.2.1 and earlier:
  1. Clone this repository (or fork it if you want to customize the tiff yourself!)
  2. Create a backup of
    /Applications/Xcode.app/Contents/SharedFrameworks/DVTKit.framework/Resources/DVTIbeamCursor.tiff
  3. Copy (
    sudo cp
    ) the tiff to
    /Applications/Xcode.app/Contents/SharedFrameworks/DVTKit.framework/Resources/DVTIbeamCursor.tiff
  4. Restart Xcode
For Xcode 7.3 and later:
  1. Clone this repository (the lines below assume you've cloned to your home directory)
  2. Create a backup of
    /Applications/Xcode.app/Contents/SharedFrameworks/DVTKit.framework/Resources/Assets.car
  3. Patch the Assets.car file with the appropriate patch:
    cd /Applications/Xcode.app/Contents/SharedFrameworks/DVTKit.framework/Resources
    sudo bspatch Assets.car Assets.car ~/better-xcode-ibeam-cursor/patches/Assets.car-Xcode-7.3.bspatch
    
  4. Restart Xcode

You should now have an i-beam that is more easy to see on a dark or black background.

Before:

Original Xcode Ibeam

After:

Improved Xcode Ibeam

Background

I find it more enjoyable to code with the Midnight color theme in Xcode, but found myself always hunting for the cursor, especially on a large monitor. I found a pretty good TIFF someone created, so I cleaned up a bit of the outline thickness and posted it here!

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.