简体   繁体   English

JetBrains WebStorm中的JavaScript变色

[英]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. expresspathfavicon ...变量之间没有显着差异:我在代码中使用它们。

Do these colors mean something, is it normal behavior of WebStorm? 这些颜色是否意味着什么,这是WebStorm的正常行为吗? If not - how to change them? 如果不是 - 如何改变它们?

JetBrains WebStorm中的可变颜色

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: 见下面的截图:

屏幕截图显示JavaScript实例函数的语法高亮颜色

屏幕截图显示了JavaScript实例变量的语法高亮颜色

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 有关更多详细信息,请访问此链接

Change Colors 改变颜色

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 JetBrains WebStorm中的本机或基础JavaScript文件 - Native or underlying JavaScript files in JetBrains WebStorm 使用Jetbrains Webstorm更改HTML5和Javascript中图像的src - Changing the src of an Image in HTML5 and Javascript using Jetbrains Webstorm JetBrains WebStorm智能感知 - JetBrains WebStorm intellisense JetBrains WebStorm 中的自定义关键字颜色 - Custom keyword colors in JetBrains WebStorm 如何在JetBrains Webstorm / PHPStorm中编写oop javascript(带有继承)以获取自动补全/智能 - how to write oop javascript (with inheritance) in JetBrains Webstorm/PHPStorm to get autocompletion/intellisense 将服务工作者代码完成功能添加到JetBrains WebStorm - Add service worker code completion to JetBrains WebStorm 如何告诉 JetBrains IDE 这个 javascript 变量将类型更改为另一个? - How to tell to JetBrains IDE that this javascript variable changed type to another? javascript可变文字颜色 - javascript variable text color 为什么在WebStorm Inspection中未解析的JavaScript变量是“弱警告”而不是“错误”? - Why is unresolved JavaScript variable “Weak Warning” instead of “Error” in WebStorm Inspection? JetBrains WebStorm自动格式与ESLint规则无案例声明冲突 - JetBrains WebStorm auto format conflict with ESLint rule no-case-declarations
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM