Browsing the archives for the fun tag.


Making xCode Behave like eclipse (sort of)

Uncategorized

So I do a lot of java development, but for my project work I am looking to do a whole whack of C and possibly Objective-C. So this means xCode and I must become friends. My problem with this is I really like the eclipse text shortcuts for deleting / moving / duplicating lines. Also I am just used to control + space for my auto complete, and option + shift + r for refactoring.

Having encountered this problem before in TextMate doing ruby stuff I assumed there would be a handy macro solution, this was not the case. So after some serious web searching I found several articles on how to solve a few of these problems. Some suggested I use ruby, other showed some neat hacking tricks with some keyboard plists, at any rate I won’t go into the how, you can find those (here, and here ).

I am simply providing my key bindings file for anyone who cares to use it.

What it does:

  • move line up: alt + up arrow
  • move line down: alt + down arrow
  • duplicate line down: alt + command + down arrow
  • delete current line: command + d
  • refactor current selection: option + shift + r
  • show auto complete: control + space

These function quite a bit more responsively than applescripts (based on my observations), however it will clear out your clip board so be warned, if anyone has any idea about that lemme know.

To install it simply place eclipse-style.pbxkeys in ~/Library/Application Support/Xcode/Key Bindings/ reboot xCode and you should be able to select the key binding file as shown in the screen shot below.

xCode Key Binding Prefs witth Eclipse-Style

xCode Key Binding Prefs witth Eclipse-Style

Hope this helps, sure makes coding in xCode more fun for me, and helps with the context switching between Eclipse and TextMate and xCode.

.joe

No Comments

Turns out snowboarding is a lot of fun.

Uncategorized

I’ve been away for the week ripping up Fernie. Having grown up here I am all to familiar with the Skier vs Snowboarder mentality around here. For the balance of my life I’ve sat on the skier side of the argument, especially here where there is so much traversing on a deep pow day boarders just get left behind.

With meg in town, and me trying to get more days in on my pass I decided to give snowboarding a try, and sacrafice a pow day to my board. Turns out, it’s crazy fun.

Granted I fell more yesterday than in probably the last decade of skiing, once i figured out how to float the board on the snow, I started to really enjoy my self.

So my suggestion to you is to go out on a the next big pow day, and just give it a try. It was a blast.

.joe out.

Also you can read my report, and see some photos form fernie at

http://blogs.fernie.com/localsreport/2009/03/04/fernies-skiing-like-whistler/

4 Comments