简体   繁体   中英

JavaScript variable color in JetBrains WebStorm

Why JS variables have different colors in JetBrains WebStorm 2016 ? There are no significant differences between express , path , favicon ... variables: I use them all in the code.

Do these colors mean something, is it normal behavior of 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.

See screenshots below:

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

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

Open Settings/Preferences dialog, and under the File node, click Colors & Fonts and select 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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM