- Total 5K
- Win 2K
- Mac 3K
- Linux 1K
|May 22||May 21||May 20||May 19||May 18||May 17||May 16||May 15||May 14||May 13||May 12||May 11||May 10||May 9||May 8||May 7||May 6||May 5||May 4||May 3||May 2||May 1||Apr 30||Apr 29||Apr 28||Apr 27||Apr 26||Apr 25||Apr 24||Apr 23||Apr 22||Apr 21||Apr 20||Apr 19||Apr 18||Apr 17||Apr 16||Apr 15||Apr 14||Apr 13||Apr 12||Apr 11||Apr 10||Apr 9||Apr 8||Apr 7|
JS Custom can be installed via Package Control. If JS Custom is uninstalled, it will remove any compiled syntax definitions.
To use JS Custom, you specify one or more syntax configurations in the JS Custom preferences. JS Custom will compile each configuration into a syntax definition. By default, JS Custom provides two example syntax configurations: “JS Custom - Default” and “JS Custom - React”. These should automatically be compiled and available for use upon installation.
All syntaxes compiled by JS Custom are created inside your User package. They are found in the Syntax menu under “User”, not under “JS Custom”.
To customize your syntax configurations, choose Preferences → Package Settings → JS Custom → Settings from the menubar. The package default settings will be shown on the left and your user settings on the right. When you change your user settings, your custom syntaxes will automatically be recompiled. (This may take a few seconds, especially if you have a lot of syntax configurations.)
If you modify your user settings outside Sublime Text, this package may not notice your modifications. To manually rebuild all of your custom syntaxes, choose Preferences → Package Settings → JS Custom → Rebuild Syntaxes from the menubar or choose “JS Custom: Rebuild Syntaxes” from the command palette.
JS Custom provides the following commands. Except for “JSX Close Tag”, they are available in the command palette and under Preferences → Package Settings → JS Custom.
Preferences: JS Custom
Open the default JS Custom preferences and your own JS Custom user preferences side-by-side in a new window.
JS Custom: Rebuild Syntaxes (
Rebuild all of your custom syntaxes and remove any obsolete compiled syntaxes.
This command takes an optional
versions argument accepting a list of configuration names. If you pass
versions, only the specified configurations will be rebuilt.
JS Custom: Clear User Data (
Packages/User/JS Custom directory, including all compiled syntaxes.
JS Custom: Report Syntax Issue With Current File (
Open the syntax issue reporting form in your browser with most information pre-filled.
JSX Close Tag (
As the built-in
close_tag command, but should work for JSX tags.
This command is not available in the command palette or the JS Custom menu. By default, whenever you run the
jsx_close_tag command will be run instead. You can disable this with the
Frequently Asked Questions
My syntaxes don't appear in the syntax selection menu. Where are they?
They are in the syntax selection menu under “User”. It would be nice to have them listed under “JS Custom”, but when generating that menu Sublime only looks at the physical location of the syntax definition files, and JS Custom compiles them to
I've switched from the Babel package and my code looks different. How do I restore the old appearance?
The current version of babel-sublime is built using JS Custom with the following configuration:
To request a feature or report a bug, create a new issue. All suggestions are welcome.
When requesting a new feature, please include a link to any relevant documentation. Because of the unique design of JS Custom, we can accommodate a variety of nonstandard features.