Cannot disable type hints for typescript
I just updated to the latest Webstorm, from October 24. This is the first time the new UI was forced, and there are a LOT of little things that no longer seem to work properly in the new UI that worked fine in the old. Most notable among them, as I don't like my code to be cluttered with useless things, is the “type hints”, where the IDE automatically displays the type for properties, variables/constants, params, etc. when I don't include them myself.
In the previous UI, I could simply right-click the specific hints I did not want, and disable them directly from the code. It seems in the latest Webstorm, the ability to right-click on ANY hint, inspection, intellisense thing AT ALL, has been lost. I cannot right click on any of the IDE-added things anymore to configure them. In particulat, I cannot disable the hints at all. Even if I manually go into Webstorm's settings, and I eventually found the separare config area for Inlay Hints, I cannot disable them there. In an ironic fact, the typescript hints were in fact already disabled, with hints only enabled for javascript. I then disabled javascript, to no effect. I then enabled typescript hints, applied, then disabled them again and applied, to no avail.
It seems that these hints have been permanently enabled in typescript, and they cannot be disabled. I am also finding that other inspections and the like, also cannot be disabled. When I'm in the groove, I like to code in a clean environment. I've been programming for over 30 years, and I don't need all the hand rails.
Please, re-enable the abiltiy to disable specific hints, inspections, etc. in Webstorm. Further, please restore the ability to right-click any of these kinds of IDE-injected elements in the code, so they can be disabled without having to spend 15 minutes hunting through an expansive settings tool to try and figure out which of the myriad of options will disable the specific hints or inspections I'm trying to disable.
Please sign in to leave a comment.
Disabling the hints using the right-click works as expected for me in the new UI:
It also works for showing the context actions when the error/warning occurs:
Please share a video recording of the issue plus the idea.log (Help > Show Log in …) within a support ticket so that we can investigate it.
Well, if it is supposed to work (i.e. right clicking), then I'll see if there is something up with my install.
The problem can be caused by certain IDE settings. Could you please try restoring the default IDE settings and see if there are still issues? To restore IDE's settings, go to File | Manage IDE Settings | Restore Default Settings....
[Important]
A confirmation popup with a path to the backup file of your settings will be displayed. Make a note of this, as you'll be able to restore your settings from this backup file later.
To restore your settings, please choose File | Manage IDE Settings | Import Settings, specify a path to the backup directory, and click Open.
If you can’t find the path to the backup file, please check this [article](https://www.jetbrains.com/help/webstorm/configuring-project-and-ide-settings.html#restore-defaults) in our help. It has a list of paths to the backup directories for each OS.
Ok. I reset my settings, and have not imported any previous settings yet. I can disable the hints manually by going into settings, inlay hints, and disabling the typescript ones there. Thing is, it takes a long time before the hints actually disappear from the code. Maybe this was always the case, and the delay was just so long, but it took over a minute for them to vanish after I disabled them in settings and hit ok.
The other problem I am still having, is I cannot right-click any of the hints or inspections in the code views, and disable them there. I have no right-click capabilities at all, as far as I can tell. Not sure what to do about that…
Updated to the very latest webstorm again. Still seem to be having the same problem. I cannot right-click on any inlay hints.
Sadly, I failed to reproduce that in my environment. Could you please describe how large your project is and how many Editor tabs are opened? Does the same happen in a small test project?
Could you please check how the right-click is recognized in IDE Settings | Keymap, Find action by shortcut, and share a screenshot like the one below?
Do I understand correctly that the right-click fails everywhere - e.g. you cannot invoke any context menu in the Editor or on the main toolbar on the top of the window?
As a general troubleshooting step please try disabling:
If that does not help, please share the following details:
Thank you!
Sorry for the delay.
So, projects are tiny. Just POCs. There is a little bit of code, but, each is an Nx Monorepo. Not sure if somehow that might play a role…
So in effect, I've been testing in small projects, and there isn't much in the codebases that could somehow be the cause. The slowness seems to happen on each, although it seems a bit random. Sometimes withhin 8-10 seconds, the hints disappear. Sometimes it takes much longer. I have NOT noticed that any indexing is occurring when its slow…its just, a bit slow.
FWIW, this is on a 2019 Intel Macbook Pro. It has tons of ram, which was one ofthe reasons I got it instead of an M1 at the time (the M1s were SIGNIFICANTLY more expensive for significantly less memory, storage, etc.) MacOS X on intel is certainly not as fast. That said, I've been using Webstorm for many many years, and I've been able to enable and disable hints with ease in the past (including the version of Webstorm, I think the last from 2023, before I upgraded.) The issues only seemed to start since I've upgraded.
Also FWIW, I've nuked any cached data, stored settings, etc. Uninstalled Webstorm, and installed it completely clean. I've tested without plugins, before installing any (outside of those that come bundled) as well as with plugins. The presence of plugins does not seem to affect the issues. I don't use any mouse or keyboard management software on the Mac. The slowness persists (although, I guess its a bit less slow now, than it was.) The right click issue also still exists. Searching for any right-click shortcuts comes up EMPTY, though:
Regarding what right-clicks don't work. ONLY the inlay hint ones don't seem to work. I can still right-click other things in the editor, and get a context menu. I also noticed that if I right-click the “usages” link in the editor, which is a link, rather than just inline text (that isn't editable code, like the inlay hints), then I do get a context menu for that.
It is JUST the inlay hints themselves that don't seem to allow right-clicking. This definitely worked before, it was the primary means by which I disabled specific hints, thus allowing other specific hints to stay active, in all my prior projects, spanning back years. I don't know what's changed in the 2024 version of webstorm, but there does seem to be an issue.
Oh, the decives I use as a mouse are either the built-in track pad on the mac, or my official Apple branded “Magic Trackpad” that uses bluetooth to connect. My magic trackpad is a few years old, but as far as I can tell, its exactly the same thing they still sell new today. It's always worked before. It was working fine before I updated webstorm. Its only since updating to the Webstorm 2024.* versions that the right-click issue has been occurring. It has occurred with the last two versions from 2024 (when I upgraded, several patches in a row were applied, until the October 24 patch. Then I upgraded once more to the Nov 24 patch. Both patched versions have had the right-click and slowness issues.
FWIW, to be even more clear…THIS SPECIFICALLY, is the right-click functionality I'm looking for, that does not work for me:
Elena shared this a few posts above. Right-clicking on that grayed-out “inlay hint” text in the middle of the code there, that doesn't work for me. I DO get the little yellow and red. light bulbs. FWIW, those still do work, if I click on them. It used to be that I could point to the problematic code, and a popup would appear. That popup actually doesn't seem to appear for most things anymore. It appears for a couple, but not most.
The inlay hints are, for me personally, incredibly disruptive and affect my coding ability and performance. I'm an extremely fast typer, and they just interfere with my comprehension of the code, etc. If I want a type, I add a type myself, but there are times when I explicitly don't want them, so I disable those particular hints. (I disable most, there are only a couple I keep.) The hints also seem to affect performance a bit (probably an intel mac thing)…not a lot, but, when you are trying to type 100WPM they do cause some stuttering and its frustrating.
I can, of course, manually turn them off. But I'd like the ability, to just right-click (or otherwise activate the context menu) when I encounter them inline so I can immediately disable the ones that disrupt me in each new project I work with in Webstorm.