Skip to content
A sublime text plugin for text formatting.
Python
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
.no-sublime-package
Default (OSX).sublime-keymap
Default (Windows).sublime-keymap
LICENSE
README.md
pzformat.py
pzformat.sublime-settings
pzformat_demo.gif

README.md

PzFormat

A sublime text plugin to format text.

alt tag

Installation

  • Use Package Control to install
  • Or you can download or clone directly and drop into your Sublime Text 3 packages directory

Usage

Put any type format string into clipboard

Format syntax example.

  • my name is {}, come from {}.
  • INSERT INTO Persons (id, name, gender) VALUES ({0}, {1}, {2});
  • {0} * {0} = {1}

Select data in sublime text

The number of columns must be equal to the number of format string parameters.

"separator": [",",",",";"] //default separators. space is implicit included

Format by [super+shift+o,super+shift+f]

PzFormat will auto split data into lines and try to format each line.

Attentions

  • You can use {{ replace { and }} replace } to avoid them escaped.
    e.g. string.format("{{}},{{}},{{}}", {},{},{}); show be format to string.format("{},{},{}", value1,value2,value3);
You can’t perform that action at this time.