Atomizr
Convert Sublime Text completions into Atom (or Visual Studio Code) snippets, and vice versa.
Details
Installs
- Total 4K
- Win 2K
- Mac 922
- Linux 670
Jan 15 | Jan 14 | Jan 13 | Jan 12 | Jan 11 | Jan 10 | Jan 9 | Jan 8 | Jan 7 | Jan 6 | Jan 5 | Jan 4 | Jan 3 | Jan 2 | Jan 1 | Dec 31 | Dec 30 | Dec 29 | Dec 28 | Dec 27 | Dec 26 | Dec 25 | Dec 24 | Dec 23 | Dec 22 | Dec 21 | Dec 20 | Dec 19 | Dec 18 | Dec 17 | Dec 16 | Dec 15 | Dec 14 | Dec 13 | Dec 12 | Dec 11 | Dec 10 | Dec 9 | Dec 8 | Dec 7 | Dec 6 | Dec 5 | Dec 4 | Dec 3 | Dec 2 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Mac | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Linux | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Readme
- Source
- raw.githubusercontent.com
Atomizr for Sublime Text
Convert Sublime Text completions into Atom (or Visual Studio Code) snippets, and vice versa.
Also available for Atom and the command line (see the comparison chart).
Installation
Package Control
- Make sure you already have Package Control installed
- Choose “Install Package” from the Command Palette (Super+Shift+p)
- Type “Atomizr” and press Enter
- Repeat steps 2 and 3 to install “Better CoffeeScript”
With auto_upgrade enabled, Package Control will keep all installed packages up-to-date!
Manual installation
Since package dependencies are handled by Package Control, manual installation is not advised! If you still want to install from source, you probably know what you are doing so we won’t cover that here.
Usage
The Command Palette currently offers the following commands, each prefixed with “Atomizr”:
Action | Input | Output |
---|---|---|
Automatic conversion¹ | CSON\ | JSON\ |
Convert Atom to Sublime Text | CSON\ | JSON |
Convert Atom to Visual Studio Code | CSON\ | JSON |
Convert Sublime Text to Atom² | JSON\ | XML |
Convert Sublime Text to Visual Studio Code | JSON\ | XML |
Convert Visual Studio Code to Atom² | JSON |
CSON\ |
Convert Visual Studio Code to Sublime Text | JSON |
JSON |
Toggle Atom format | CSON\ | JSON |
Toggle Sublime Text format | JSON\ | XML |
¹⁾ converts Atom and Sublime Text only
²⁾ target syntax can be specified in the settings
Note: Since automatic conversion is based on scope, make sure the a supported CoffeeScript package is installed as well. Using Better CoffeeScript is recommended, though CoffeeScript, IcedCoffeeScript and Mongoose CoffeeScript are also supported.
Keyboard Shortcuts
The following examples use the macOS keyboard shortcuts. On Linux or Windows use Ctrl+Alt as modifier key instead of Ctrl.
Memorizing the keyboard shortcuts for conversion is easy. Just think of the A key for Atom, the S key for Sublime Text and the V key for Visual Studio Code:
Action | Mnemonic | Shortcut |
---|---|---|
Atom to Sublime Text | “A to S” | Ctrl+A, Ctrl+S |
Atom to Visual Studio Code | “A to V” | Ctrl+A, Ctrl+V |
Sublime Text to Atom | “S to A” | Ctrl+S, Ctrl+A |
Sublime Text to Visual Studio Code | “S to V” | Ctrl+S, Ctrl+V |
Visual Studio Code to Atom | “V to A” | Ctrl+V, Ctrl+A |
Visual Studio Code to Sublime Text | “V to S” | Ctrl+V, Ctrl+S |
Atom to Atom | “A to A” | Ctrl+A, Ctrl+A |
Sublime Text to Sublime Text | “S to S” | Ctrl+S, Ctrl+S |
For automatic conversion, press Ctrl+C twice.
Settings
Some of the default conversion settings can be modified from the Package Settings menu:
- Rename target files (
boolean
) - Add or remove trailing tab-stops (
boolean
) - Indentation level (
int
) - Sort keys (
boolean
) - Scope replacement rules (
array
) - Atom snippet syntax format (
boolean
)
License
This work is licensed under the The MIT License.