ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Auto-Spacing

by xwartz ALL

💥 Sublime Text 3 Plugin to automatically insert whitespace between CJK (Chinese, Japanese, Korean) and half-width characters (alphabetical letters, numerical digits and symbols).

Details

Installs

  • Total 5K
  • Win 4K
  • Mac 789
  • Linux 728
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 Dec 1 Nov 30 Nov 29 Nov 28 Nov 27 Nov 26 Nov 25 Nov 24 Nov 23 Nov 22 Nov 21 Nov 20 Nov 19 Nov 18 Nov 17 Nov 16 Nov 15 Nov 14 Nov 13 Nov 12
Windows 0 0 1 0 1 0 1 1 1 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 1 0 0 0 0 2 0 2 0 0 1 0 0 2 0 0 0
Mac 0 2 1 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 0 0 0 0 0 0 0 0
Linux 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 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

Auto-Spacing

Paranoid text spacing for good readability, to automatically insert whitespace between CJK (Chinese, Japanese, Korean) and half-width characters (alphabetical letters, numerical digits and symbols).

中文说明

Installation

Via Git

Just clone the repo via git to Sublime's package directory.

Via Package Control

To install via Package Control, do the following:

Within Sublime Text, bring up the Command Palette and type install. Among the commands you should see Package Control: Install Package. If that command is not highlighted, use the keyboard or mouse to select it. There will be a pause of a few seconds while Package Control fetches the list of available plugins.

When the plugin list appears, type Auto Spacing. Among the entries you should see Auto-Spacing. If that entry is not highlighted, use the keyboard or mouse to select it.

Commands

Command palette:

  • Auto-Spacing: Spacing this file

Shortcut key:

  • Linux/Windows: [Ctrl + Shift + B]
  • Mac: [Cmd + Shift + B]

Settings

By default, Auto-Spacing will supply the following settings:

{
  // Automatically format when a file is saved.
  "format_on_save": false,

  // Only attempt to format files with whitelisted extensions on save.
  // Leave empty to disable the check
  "format_on_save_extensions": [
    "md",
    "txt"
  ]
}
  • Modify any settings within the Preferences -> Package Settings -> Auto-Spacing -> Settings - User file.

Contributing

If you find any bugs feel free to report them here.

Pull requests are also encouraged.

Thanks

@vinta

License

MIT