Automatically replace full-width Chinese punctuation with half-width English punctuation. This tool helps developers maintain consistent punctuation without frequently switching input methods.
Now supports VS Code 1.107.0 and later, macOS, Linux, and Windows.
Features
Context menu replacement: Right-click on selected text and choose "tlcsdm" → "Replace Chinese Punctuation" to replace.
Replace entire document: Replace all Chinese punctuation in the current document via Command Palette.
Configurable rules: Customize replacement rules (Chinese → English mapping) in VS Code settings.
Undo/Redo support: All replacement operations support VS Code's undo/redo mechanism.
Usage
Manual Replacement (Context Menu)
Select the text you want to replace
Right-click to open context menu
Select "tlcsdm" → "Replace Chinese Punctuation"
Replace Entire Document
Open Command Palette (Ctrl+Shift+P)
Search for "Fix Chinese Characters: Replace in Document"
Configuration
Open VS Code Settings and search for "Fix Chinese Characters" to configure: