简体   繁体   中英

PhpStorm / WebStorm color scheme - TypeScript / JavaScript - how to target injected service

I've just upgraded PhpStorm from version 2017.1.4 to 2017.3.4 and to my annoyance it has affected my color scheme. See screenshot:

在此处输入图片说明

See my injected classes? _builderService , _loaderService etc- both where they are declared in the constructor, and where they are later used in the code...

They used to be yellow !!!

Here's how it should look:

在此处输入图片说明

I've looked in the color scheme settings both for Typescript and JavaScript and I can't see any relevant option to target them to change the color?

The closest I can find is 'Instance member variable'- but it's not what I want, that's too generic. Like I say, I used to be able to specifically target injected services to color them.

Anyone...?

对此有一个更好的答案将是很棒的,但是到目前为止,我已经简单地降级到了2017.2.4版,我发现它仍然尊重配色方案,允许以Angular注入服务为目标(尽管我仍然不能找到控制此定位的配色方案设置)

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