Skip to content

Instantly share code, notes, and snippets.

@nicetrysean
Created January 21, 2015 00:59
Show Gist options
  • Save nicetrysean/9b5446bbc383d1c7fd91 to your computer and use it in GitHub Desktop.
Save nicetrysean/9b5446bbc383d1c7fd91 to your computer and use it in GitHub Desktop.
Unity 3D Apply Syntax settings
{
// If you want exceptions reraised so you can see them in the console, change this to true.
"reraise_exceptions": false,
// If you want to have a syntax applied when new files are created, set new_file_syntax to the name of the syntax to use.
// The format is exactly the same as "name" in the rules below. For example, if you want to have a new file use
// JavaScript syntax, set new_file_syntax to 'JavaScript'.
"new_file_syntax": false,
// Put your custom syntax rules here:
"syntaxes": [
{
// Unity 3D C# format detection.
"name": "Unity3D/UnityC#",
"match": "all",
"rules": [
{"file_name": ".*\\.cs$"},
{"contains": "using UnityEngine;\n"}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment