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 istrue
.vscode-typograf.locale
: locale for typograf. Default isen_US
. Does't work withvscode-typograf.autoDetectLocale
.vscode-typograf.type
: type of HTML entities.As names, “A”
orAs digits, “A”
. Default isUTF-8, “A”
.vscode-typograf.onlyInvisible
: HTML entities only for invisible symbols. Default isfalse
.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
.