-
-
Notifications
You must be signed in to change notification settings - Fork 84
Home
PackageDev provides syntax highlighting and other helpful utility for Sublime Text resource files.
Resource files are ways of configuring the Sublime Text text editor to various extends, including but not limited to custom syntax definitions, context menus (and the main menu), key bindings.
Thus, this package is ideal for package developers, but even normal users of Sublime Text who want to configure it to their liking should find it very useful.
If you haven't installed the package already, do so using Package Control. The package's name is PackageDev.
PackageDev was made for Sublime Text 3. An older unmaintained version can still be installed for Sublime Text 2, however.
Syntax highlighting for various resource files is available immediately.
Various commands, for example creating a new resource, are made available through the command palette (Primary+Shift+P) with the "PackageDev:" prefix and in the main menu under Tools → Packages → Package Development,
Note: The Primary key refers to Ctrl on Windows and Linux and Command (⌘) on macOS.
JSON resource files have completions for each of their expected keys. They are completed both within the key string and in the bare mapping. An example for build systems can be found below:
TextMate Preferences files also have completions, e.g. like so:
Most JSON resource files have a snippet or two for sequence entries. They can be triggered with e or ee (longer version).
-
ec and eec - Menu entry with the
children
key (over multiple lines)
- snippet - Base skeleton for a snippet file
- plist - Base skeleton for a Property List
Additional feature descriptions can be found in the sidebar.
Resource files that don't have more than a syntax definition, snippets, completions and a command to create them do not get their own page.
To create an entirely new package with resource files, continue with Creating a Package.