Skip to content
FichteFoll edited this page Nov 6, 2017 · 5 revisions

PackageDev - The Sublime Text Meta Package

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.

Installation

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.

Getting Started

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.

Completions

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:

Image with completions popup Image with inserted completion

TextMate Preferences files also have completions, e.g. like so:

Image with tmpref completions Image with inserted tmpref completion

Snippets

General

Most JSON resource files have a snippet or two for sequence entries. They can be triggered with e or ee (longer version).

Menu Snippets

  • ec and eec - Menu entry with the children key (over multiple lines)

Snippet Snippets

  • snippet - Base skeleton for a snippet file

Property Lists

  • plist - Base skeleton for a Property List

What's Next?

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.