visual code中的python代码为什么汉字注释会被标方框?
回答:
Unicode highlighting
All uncommon invisible characters in source code are now highlighted by default:
In addition, characters that can be confused with ASCII characters are also highlighted:
The settings
editor.unicodeHighlight.invisibleCharacters
,editor.unicodeHighlight.ambiguousCharacters
, oreditor.unicodeHighlight.nonBasicASCII
can be set to false to disable the corresponding feature.
根据设置,所有非 ASCII 字符都由可能被 highlight。
1.64 有加了几个新的选项,比如 editor.unicodeHighlight.allowedLocales
。把 allowedLocales
设置成 zh-hans
中文一般就不提示了。
你把鼠标放到提示上,应该可以看到一些说明吧 ...
以上是 visual code中的python代码为什么汉字注释会被标方框? 的全部内容, 来源链接: utcz.com/p/938367.html