xgqfrms / vscode

:cn: :rocket: Visual Studio Code & VSCode Code Snippets All in One 🎉
https://vscode.xgqfrms.xyz
MIT License
3 stars 1 forks source link

vscode & YAML & 中文全角符号 bug #59

Open xgqfrms opened 1 year ago

xgqfrms commented 1 year ago

vscode & YAML & 中文全角符号 bug

中文半角符号

image
  33: "HTTPS,通过 SSL 证书,确保您与您期望的接收器完全连接。"
The character U+ff0c "," could be confused with the character U+002c ",", which is more common in source code. 
image
xgqfrms commented 1 year ago

VSCode & Unicode Highlight

Command + Shift + P

image

vscode settings.json


{
    "editor.unicodeHighlight.allowedLocales": {
      "zh-hans": true
    },
}
xgqfrms commented 1 year ago

中文输入法 全角和半角的区别?

https://www.zhihu.com/question/19605819

https://blog.csdn.net/kevinhg/article/details/8702462

1、全角:指一个字符占用两个标准字符位置。

汉字字符和规定了全角的英文字符及国标GB2312-80中的图形符号和特殊字符都是全角字符。一般的系统命令是不用全角字符的,只是在作文字处理时才会使用全角字符。

2、半角:指一字符占用一个标准的字符位置。

通常的英文字母、数字键、符号键都是半角的,半角的显示内码都是一个字节。在系统内部,以上三种字符是作为基本代码处理的,所以用户输入命令和参数时一般都使用半角。