recoder
Various commands for rearranging source code
recoder
is an Atom package for sorting code blocks in various programming languages.
Languages
YAML
roaming
: every key is attended by the group of comments preceding it (if any)steady
: all comments are left in place
Command syntax
recoder[-reverse][-natural][-case]:<language>[-<mode>]
reverse
: descending ordernatural
: natural ordering (as opposed to lexicographical)case
: case-insensitive orderinglanguage
: the language name in lowercase (e.g.yaml
)mode
: additional option (depends on thelanguage
, e.g.steady
)
Examples
recoder-natural:yaml-steady
sort YAML code in **steady** mode using **natural** ordering
recoder-reverse-case:yaml-roaming
sort YAML code in **roaming** mode using **reversed case-insensitive** ordering
Usage
Just hit Ctrl-Shift-P
and start typing your command; the list below instantly shows matching commands and you can either use arrow-keys followed by Enter
or click on that command.
Setup
- in the editor:
`Ctrl-
` > Install > type `'recoder'` > press `Enter` > click `Install` - using
apm
:`~$ apm install recoder`