是否可以在 VSCode 主题中使用 editor.tokenColorCustomizations?
Is it possible to use editor.tokenColorCustomizations in a VSCode theme?
1.15 添加了对语法范围的一般方面进行主题化的功能,我正在尝试使用通用标记('comments'、'variables' 等)来简化主题,但是 editor.tokenColorCustomizations
似乎不起作用。是否有适用于主题的变体?
是的,那些 "generic tokens" 特定于 editor.tokenColorCustomizations
设置(这意味着您不能在主题中使用它们)。它们映射到 TmLanguage 范围如下:
comments: 'comment',
strings: 'string',
keywords: 'keyword',
numbers: 'constant.numeric',
types: 'entity.name.type',
functions: 'entity.name.function',
variables: 'variable'
https://github.com/Microsoft/vscode/pull/29393/files#diff-fcf8acf0156463f17f7fa7ed78c3b7e8R27
1.15 添加了对语法范围的一般方面进行主题化的功能,我正在尝试使用通用标记('comments'、'variables' 等)来简化主题,但是 editor.tokenColorCustomizations
似乎不起作用。是否有适用于主题的变体?
是的,那些 "generic tokens" 特定于 editor.tokenColorCustomizations
设置(这意味着您不能在主题中使用它们)。它们映射到 TmLanguage 范围如下:
comments: 'comment',
strings: 'string',
keywords: 'keyword',
numbers: 'constant.numeric',
types: 'entity.name.type',
functions: 'entity.name.function',
variables: 'variable'
https://github.com/Microsoft/vscode/pull/29393/files#diff-fcf8acf0156463f17f7fa7ed78c3b7e8R27