Skip to content

Instantly share code, notes, and snippets.

@xdegtyarev
Created November 10, 2012 19:44
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save xdegtyarev/4052254 to your computer and use it in GitHub Desktop.
Save xdegtyarev/4052254 to your computer and use it in GitHub Desktop.
CompleteSharp Unity3d config
{
// You probably want to configure this to something of your own.
// ${home}, ${env:<variable>}, ${project_path:} and ${folder:} tokens can be used in the completesharp_assemblies option.
//
// ${home} is replaced with the value of the HOME environment variable.
//
// ${env:<variable>} is replaced with the "variable" environment variable.
//
// ${project_path:} tries to find a file with the given name in all the registered project folders and
// returns the first file found, or the original file name if none is found.
// Example: ${project_path:main.cpp} tries to find a file named "main.cpp" relative
// to the current project's folders. If none is found, it is replaced with "main.cpp".
//
// ${folder:} is replaced with the dirname of the given path.
// Example: ${folder:/path/to/file} is replaced with "/path/to".
//
// Replacement is done sequentially, first all ${project_path:} are resolved, then ${home} and
// ${env:<variable>} tokens, and then the ${folder:} are replaced,
"completesharp_assemblies": [
"/Applications/Unity/Unity.app/Contents/Frameworks/Managed/UnityEngine.dll",
"/Applications/Unity/Unity.app/Contents/Frameworks/Managed/UnityEditor.dll",
"${project_path:/Library/ScriptAssemblies/Assembly-CSharp.dll",
"${project_path:/Library/ScriptAssemblies/Assembly-CSharp-Editor.dll",
],
// Regular expression filter used to filter the completion
// suggestions
"completesharp_filterregex": "^(get_|set_|op_|add_|remove_|<)",
// When set to true will inhibit the completions suggested
// by default by Sublime Text 2 if CompleteSharp can't
// find anything to complete
"completioncommon_inhibit_sublime_completions": true,
// When set to true will shorten class names in the completion list
// by removing the package name.
"completioncommon_shorten_names": true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment