Skip to content
| Marketplace
Sign in
Visual Studio Code>Formatters>中文符号转英文符号New to Visual Studio Code? Get it now.
中文符号转英文符号

中文符号转英文符号

brand

|
5,770 installs
| (0) | Free
??????????????
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

change-symbol README

自动将中文符号转换为英文符号,转换表如下

    text = text.replace(/。/g, ".");
    text = text.replace(/《/g, "<");
    text = text.replace(/》/g, ">");
    text = text.replace(/?/g, "?");
    text = text.replace(/;/g, ";");
    text = text.replace(/:/g, ":");
    text = text.replace(/‘/g, "'");
    text = text.replace(/’/g, "'");
    text = text.replace(/“/g, "\"");
    text = text.replace(/”/g, "\"");
    text = text.replace(/!/g, "!");
    text = text.replace(/(/g, "(");
    text = text.replace(/)/g, ")");
    text = text.replace(/——/g, "_");

注意:插件不会对键入环境进行判断,键入就会立马改变,如果还想键入上述中文字符,请先禁用插件

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft