pandazki / vscode-pzformat

A clipboard format utility base on the sprintf.js.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Clipboard Format(pzformat) README

A clipboard format utility base on the sprintf.js. (Migrate from my sublime plugin pzformat)

Features

demo

Usage

1. Copy or cut your format string.(Just put it into your clipboard)

eg.

INSERT INTO Persons (id, name, gender) VALUES (%s, %s, %s);

2. Select all data which you want to format.

eg.

1 Jack male
2 Mary female
3 Tom male

3. Press [cmd+shift+p] and type clipboard format

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.

About

A clipboard format utility base on the sprintf.js.


Languages

Language:TypeScript 100.0%