嗨,我想知道如何更改在 VSCode 中调用的类的名称? 例如,以下行
self.layernorm_1 = nn.LayerNorm(n_embed)
self.attention = SelfAttention(n_head, n_embed)
等等...
在我的 VSCode 中,“nn.LayerNorm”、“SelfAttention”是白色的,而不是像我一直关注的演示视频中的绿色(https://www.youtube.com/watch?v=ZBKpAp_6TGI&t=8237s) [第二张截图)
我尝试在 settings.json 中摆弄一些 tokenColorCustomizations
"entity.name.type.class"
"support.class"
"support.function"
"entity.name.class"
但我所做的改变都没有针对正确的事情。有什么想法吗?谢谢!
视频中的可能改变了颜色主题。您可以使用 Ctrl+k,Ctrl+S 快捷键更改 VSCode 主题。
官方文档: https://code.visualstudio.com/docs/getstarted/themes
如果您想创建自己的主题,请查看: 如何为 VS Code 创建自己的主题?