Giter Club home page Giter Club logo

better-xcode-ibeam-cursor's Introduction

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
  1. 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!

better-xcode-ibeam-cursor's People

Contributors

bogdancernat avatar dr-emann avatar ebaker355 avatar egold avatar glibsm avatar jakedahn avatar jameszaghini avatar respectthecode avatar sebschlo avatar xgelila avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

better-xcode-ibeam-cursor's Issues

XCode 6 support

Hi there,

This trick does not seem to work 100% with the new XCode 6, after modifying the cursor tiff file I can see the change but right after I start typing code, the cursor turn back to black and stay black until you move it to some area that force the cursor to change. I suspect there are some other places to hold the cursor for code typing.

Do you have any solution for this issue?

Thanks

Path changed

Great project!

For later Xcode versions (like 5.1.1), the path is different:

 /Applications/Xcode.app/Contents/SharedFrameworks/DVTKit.framework/Versions/A/Resources/DVTIbeamCursor.tiff

Thanks again!
– Kaspar

Xcode 8

The steps to fix the cursor don't seem to work with Xcode 8...

Any timeframe on an Xcode 8 solution?

Thanks!!!

Blinking hot spot

I think it would extremely helpful to adjust the color of the blinking hotspot (where the last click was registered), as well. Right now, it's black, so it's almost impossible to find.

Xcode 8 beta

This is probably entirely too early in the game to be requesting this, but getting the patch to work on Xcode 8 would be awesome

cp: permission denied

$ cp $XCODE_RESOURCE_PATH/DVTIbeamCursor.tiff $XCODE_RESOURCE_PATH/backup-DVTIbeamCursor.tiff
cp: /Applications/Xcode.app/Contents/SharedFrameworks/DVTKit.framework/Resources/backup-DVTIbeamCursor.tiff: Permission denied

I would prefer:
sudo mv $XCODE_RESOURCE_PATH/DVTIbeamCursor.tiff $XCODE_RESOURCE_PATH/backup-DVTIbeamCursor.tiff

Cursor is too large!

Hi,

I used your .tiff file with Mousecape to create an Ibeam cursor that I could see while hovering over a black Terminal window(Pro style). However, your .tiff image creates a cursor that is about 10 times the size of the normal Ibeam cursor. Is the Ibeam gargantuan in Xcode as well?

Aha! The solution is to drag the .tiff file onto the box labeled '2x' in Mousecape.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.