Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using Xcode with Javascript/Coffeescript and Titanium?

I am getting rather annoyed with Titanium Studio so I decided to look for an alternative. I have used many IDEs (such as Aptana, Komodo, Netbeans, TextMate) but they have never seemed to be so streamlined and efficient as Xcode (especially with its Git integration).

So my question is: Is there a way to edit Javascript/Coffeescript files while using the full project interface in Xcode? (most importantly git integration)

(I'm using Xcode 4 with Mac OSX Lion)

Thanks in advance
Fred

like image 230
Fred Avatar asked Jul 28 '11 09:07

Fred


1 Answers

I have not done Coffeescript development, but my answer covers how to use Xcode for languages other than C, C++, and Objective-C. Create either an external build system project or an empty project in Xcode. When you create the project, Xcode gives you the option to create a local git repository for the project. If you already have a git repository, you must add the Xcode project file to the repository.

After creating the project, add your files to the project. Xcode 4 has Javascript syntax coloring. If your Javascript files have the file extension .js, Xcode will automatically give you Javascript syntax coloring. I don't know how different Coffeescript is from Javascript, but you can give your Coffeescript files Javascript syntax coloring by choosing Editor > Syntax Coloring > JavaScript.

like image 146
Swift Dev Journal Avatar answered Sep 19 '22 23:09

Swift Dev Journal