简体   繁体   English

如何禁用WebStorms未使用的功能颜色功能?

[英]How to disable WebStorms unused function color feature?

I was wondering if anything knows how to disable the feature in WebStorm where if you create a function and don't call it yet, the color will just stay green and not gray. 我想知道是否有人知道如何在WebStorm中禁用该功能,如果您创建一个函数但不调用它,则该颜色只会保持绿色而不是灰色。

I went inside the preferences area and changed my global function colors to green but they only turn green if I call them. 我进入了“首选项”区域,并将全局函数的颜色更改为绿色,但是如果我调用它们,它们只会变为绿色。 For any uncalled functions will stay gray. 对于任何未调用的功能,将保持灰色。

灰色函数名称示例

  • Go to File -> Settings... 转到文件->设置...
  • Open Editor -> Colors & Fonts -> General 打开编辑器->颜色和字体->常规
  • Save the current scheme as a custom one 将当前方案另存为自定义方案
  • expand Errors and Warnings on the right 在右侧展开错误和警告
  • change the color for Unused symbol 更改未使用符号的颜色

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

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