在 vscode 中使用表情符号编码

Coding with emoji in vscode

VSCode 使用表情符号作为变量时出现错误。

以下是使用字母变量。

我正在尝试使用表情符号进行编码并从表情符号中获取智能感知。现在还支持吗?

基于https://mothereff.in/js-variables,不允许使用表情符号。

来自https://mathiasbynens.be/notes/javascript-identifiers

What is allowed in an identifier name?

An identifier must start with $, _, or any character in the Unicode categories “Uppercase letter (Lu)”, “Lowercase letter (Ll)”, “Titlecase letter (Lt)”, “Modifier letter (Lm)”, “Other letter (Lo)”, or “Letter number (Nl)”.

The rest of the string can contain the same characters, plus any U+200C zero width non-joiner characters, U+200D zero width joiner characters, and characters in the Unicode categories “Non-spacing mark (Mn)”, “Spacing combining mark (Mc)”, “Decimal digit number (Nd)”, or “Connector punctuation (Pc)”.