Skip to content

Instantly share code, notes, and snippets.

@OdatNurd
Created September 28, 2017 21:42
Show Gist options
  • Save OdatNurd/d59a5e334f4ae4076bd1911fca73d3f7 to your computer and use it in GitHub Desktop.
Save OdatNurd/d59a5e334f4ae4076bd1911fca73d3f7 to your computer and use it in GitHub Desktop.
An example of adding a settings item to the Preferences menu in ST3 (recent builds)
[
{
"caption": "Preferences",
"mnemonic": "n",
"id": "preferences",
"children":
[
{
"caption": "Package Settings",
"mnemonic": "P",
"id": "package-settings",
"children":
[
{
"caption": "Open URL",
"children":
[
{
"caption": "Settings",
"command": "edit_settings",
"args": {
"base_file": "${packages}/Open URL/open_url.sublime-settings",
"default": "{\n\t$0\n}\n"
}
}
]
}
]
}
]
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment