Sometimes VSCode goes crazy and converts the tooltip to real characters and the code crashes because it doesn't understand what baseOptions:
means.
I don't want to turn off the tooltip. How can I turn it off so it turns into source code?
public function behaviors() {
return HandleAuth::behaviors(
[
"verbs" => [
"class" => VerbFilter::class
]
]
);
}
This is a feature called inlayHints
provided by an extension. It can definitely be found in devsense/PHPTools, but I can't comment on other extensions off the top of my head.
Sometimes, during copy-paste, inlay hints end up on the clipboard. If we ignore this small issue, the inlay hint can only be added to the code by double-clicking, and you can disable this by modifying the settings.json
(or Ctrl, and search php.inlayHints.insertOnDoubleClick
and set to false
) in VSCode:
{
"php.inlayHints.insertOnDoubleClick": false,
}