Hi, is displaying the possiblity of named arguments a new feature?
Can we configure the color to tone it down or disable? It affects my readability of the code.
Hi, is displaying the possiblity of named arguments a new feature?
Can we configure the color to tone it down or disable? It affects my readability of the code.
phptools We have released so-called "inlay hints" in the pre-release.
It is a native VSCode feature, so there is a bunch of settings you experiment with (we'll be preparing a proper documentation soon):
Additionally specific PHP settings:
thanks! I will play around with the font sizes etc, but if we can tone down colors would be great
phptools Ok, I found the solution for that!
Colors are defined by themes, but you can customize them using settings.
Those are the color keys:
editorInlayHint.background
: Background color of inline hints.editorInlayHint.foreground
: Foreground color of inline hints.editorInlayHint.typeForeground
: Foreground color of inline hints for typeseditorInlayHint.typeBackground
: Background color of inline hints for typeseditorInlayHint.parameterForeground
: Foreground color of inline hints for parameterseditorInlayHint.parameterBackground
: Background color of inline hints for parametersAnd this is how to customize them in your settings.json
:
"workbench.colorCustomizations": {
"editorInlayHint.background": "#0f0"
},
References:
Thanks!!
phptools thank you for pointing this out, and for trying the pre-release - we'll add it to the documentation for others.
Np, I use PHP Tools every day.. haha
After using for 1 day, I decided to turn it off for now.
I think inlay hinting makes editing much harder because it is inline, making me wonder if it is text that I typed and have to navigate. Going along this line, If may feel better if can be made subscript or superscript.
phptools Personally I don't use either, but it is a frequently requested feature. Especially by people coming from PHP Storm.
I'm happy you use our tools so often! Also thank you for being so active and letting us know everything we can make better, or fix.
The feedback about inlay hints makes sense - I'd prefer it smaller, or maybe more dimmed as well.
For anyone reading, I found it helpful to make inlay hints fonts slightly smaller and same color as the comments