[英]JavaScript variable color in JetBrains WebStorm
Why JS variables have different colors in JetBrains WebStorm 2016 ? 为什么JS变量在JetBrains WebStorm 2016中有不同的颜色? There are no significant differences between express
, path
, favicon
... variables: I use them all in the code. express
, path
, favicon
...变量之间没有显着差异:我在代码中使用它们。
Do these colors mean something, is it normal behavior of WebStorm? 这些颜色是否意味着什么,这是WebStorm的正常行为吗? If not - how to change them? 如果不是 - 如何改变它们?
The colours for those member fields are different because they are different types. 这些成员字段的颜色不同,因为它们是不同的类型。
The fields coloured purple are object variables and the fields in light orange are function variables. 紫色的字段是对象变量,浅橙色的字段是函数变量。
IntelliJ (or WebStorm) has determined this by examining the export field of the targeted JavaScript files. IntelliJ(或WebStorm)通过检查目标JavaScript文件的导出字段来确定这一点。
See screenshots below: 见下面的截图:
Open Settings/Preferences dialog, and under the File node, click Colors & Fonts and select JavaScript. 打开“设置/首选项”对话框,在“文件”节点下,单击“颜色和字体”,然后选择“JavaScript”。 From right panel you can change all the colors 从右侧面板,您可以更改所有颜色
It's important to note that the check box Use inherited attributes is selected! 请务必注意选中“使用继承的属性”复选框!
For more detail go to this link 有关更多详细信息,请访问此链接
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.