Helps to automatically place the non-breaking spaces, correct small typos, replace the quotation marks to a correct format and much more. Based on typograf and atom-red-typography. You can try online version.
Select text and press ctrl + alt + T.
before | after |
---|---|
1 +- 2 1 <= 2 1 -> 2 (c), (tm) 10 C, 20 F 1/2, 3/4 10x3~=30 | 1 ± 2 1 ≤ 2 1 → 2 ©,™ 10 °C, 20 °F ½, ¾ 10×3≅30 |
This extension contributes the following settings:
vscode-typograf.autoDetectLocale
: detect locale automatically. Default is true
.vscode-typograf.locale
: locale for typograf. Default is en_US
. Does't work with vscode-typograf.autoDetectLocale
.vscode-typograf.type
: type of HTML entities. As names, “A”
or As digits, “A”
. Default is UTF-8, “A”
.vscode-typograf.onlyInvisible
: HTML entities only for invisible symbols. Default is false
.vscode-typograf.enableRules
: specify rules to enable, separated by commas.\nExample: common/nbsp/replaceNbsp,ru/optalign/*
.vscode-typograf.disableRules
: specify rules to disable, separated by commas.\nExample: common/space/afterPunctuation,common/space/trimLeft
.