A clipboard format utility base on the sprintf.js.
(Migrate from my sublime plugin pzformat)
Features
Usage
eg.
INSERT INTO Persons (id, name, gender) VALUES (%s, %s, %s);
eg.
1 Jack male
2 Mary female
3 Tom male
All done.
more
The default separator is /[,,;\s]/ , you can specify it by using @sep=your_separators .
eg.
@sep=#
1#Jack#male
2#Mary#female
3#Tom#male
@sep=!~
4!Panny~female
5~Jerry!none
Notice: if you set editor.insertSpaces = true in your settings, \t separator must be lose efficacy.
Release Notes
1.0.0
Initial release of core format function.
| |