A Visual Studio Code extension for formatting documents written in Japanese or Chinese.
This extension formats your document by inserting spaces between half- and full-width characters. For example, the text
今日は2017年8月11日(金)、快晴です。
is formatted as follows:
今日は 2017 年 8 月 11 日 (金)、快晴です。
- Open a document to format.
- Press
Ctrl+Shift+I
to format the document. If it does not work, pressCtrl+Shift+P
and run the commandInsert Spaces between Half/Fullwidths
.
By default, spaces are inserted to the whole document. To format a part of the document, highlight that part beforehand.
This extension is available on the marketplace.
In VS Code, press Ctrl+P
and execute ext install insert-spaces
.
Run the following commands:
$ git clone https://github.com/wgag/vscode-insert-spaces.git
$ cd vscode-insert-spaces
$ npm install
$ npm run compile
$ cp -r . ~/.vscode/extensions/wgag.insert-spaces-1.x.x