Skip to content

Helps to automatically place the non-breaking spaces, correct small typos, replace the quotation marks to a correct format and much more.

Notifications You must be signed in to change notification settings

rusnasonov/vscode-typograf

Repository files navigation

vscode-typograf

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.

Features

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

Extension Settings

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, &ldquo;A&rdquo; or As digits, &#8220;A&#8221;. 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.

About

Helps to automatically place the non-breaking spaces, correct small typos, replace the quotation marks to a correct format and much more.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published