简体   繁体   English

如何更改 $this 颜色,配色方案 PhpStorm

[英]How to change $this color, color scheme PhpStorm

I'd like to know why the color of $this in my PhpStorm isn't the one used by local variable.我想知道为什么我的 PhpStorm 中$this的颜色不是局部变量使用的颜色。

I've looked through every option of the "Language Defaults" section in the settings but I couldn't find it.我查看了设置中“语言默认值”部分的每个选项,但找不到。

这是一个例子

I'm using the color scheme vim Dark, and I like it but I want to customize it by changing this color, which is too dark.我正在使用 vim Dark 配色方案,我喜欢它,但我想通过更改此颜色来自定义它,它太暗了。

CBroe said: CBroe 说:

You need to specify it for the specific language (PHP), Identifiers -> Variable.您需要为特定语言 (PHP) 指定它,Identifiers -> Variable。

Ok thanks CBroe, so I didn't see there were specific language sections !好的,谢谢 CBroe,所以我没有看到有特定的语言部分!

I was searching for the same question, but none of the results works. 我正在搜索相同的问题,但所有结果均无效。

I also did the searching in < settings -> plugins > and tried, 我还在< settings -> plugins >中进行了搜索,并尝试了
MultiHighlight might be the temporary solution, MultiHighlight可能是临时解决方案,
effecting for current opened file by < CTRL + ' (single quote) >, 通过< CTRL + ' (single quote) >来影响当前打开的文件,
which will highlight the selected variable into list of existing color style. 这会将选中的变量突出显示到现有颜色样式的列表中。

So I still do not understand why $this was set the color as same as normal variables and even unable to be customized. 所以我仍然不明白为什么$this被设置为与普通变量相同的颜色,甚至无法自定义。

PHPStorm Preferences -> Editor -> Color Scheme -> PHP -> Identifiers PHPStorm 首选项 -> 编辑器 -> 配色方案 -> PHP -> 标识符

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

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