Skip to content

Instantly share code, notes, and snippets.

@doublerebel
Created October 11, 2012 17:55
Show Gist options
  • Save doublerebel/3874318 to your computer and use it in GitHub Desktop.
Save doublerebel/3874318 to your computer and use it in GitHub Desktop.
How to get Titanium Mobile API autocomplete with CoffeeScript in Sublime Text 2
/* Step 1:
** Place (only one) Titanium API lib (from jsca2js package) in:
** /path/to/project_root/.codeintel/libs
*/
/* Step 2:
** Create text file: /path/to/project_root/.codeintel/config
*/
{
"JavaScript": {
"javascriptExtraPaths": [
'/path/to/project_root/.codeintel/libs'
]
}
}
/* Step 3:
** Open: Preferences -> Package Settings -> SublimeCodeIntel -> Settings -- User
*/
/*
SublimeCodeIntel default settings
*/
{
/*
Sets the mode in which SublimeCodeIntel runs:
true - Enabled (the default).
false - Disabled.
*/
"codeintel": true,
// An array of language names which are disabled.
"codeintel_disabled_languages":
[
],
/*
Sets the mode in which SublimeCodeIntel's live autocomplete runs:
true - Autocomplete popups as you type (the default).
false - Autocomplete popups only when you request it.
*/
"codeintel_live": true,
// An array of language names to disable.
"codeintel_live_disabled_languages":
[
],
/*
Maps syntax names to languages. This allows variations on a syntax
(for example "Python (Django)") to be used. The key is
the base filename of the .tmLanguage syntax files, and the value
is the syntax it maps to.
*/
"codeintel_syntax_map":
{
"CoffeeScript": "JavaScript"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment