skip to Main Content

I want to remove this suggestion in VS Code which comes on hover, as it disrupts my scrolling.

2

Answers


  1. That area of the UI is called the explorer. What you’re seeing is generally called a "tooltip" in UI terminology. Looking through the available settings at the time of this writing, I do not see a setting to disable tooltips for the explorer listitems.

    I looked through settings containing "tooltip" and ones starting with explorer. and workbench.list. and didn’t find such a configuration point.

    If you open the developer tools with the Developer: Toggle Developer Tools command, you’ll see that that particular tooltip is just implmeneted with the HTML title attribute. The way that it is rendered is up to the browser, which in this case is chromium, and the particular style it appears in differs by platform / OS.

    I don’t think it’s possible to write an extension that removes those title attributes. See https://code.visualstudio.com/api/extension-capabilities/overview, which states:

    However, we also impose restrictions upon extensions to ensure the stability and performance of VS Code. For example, extensions cannot access the DOM of VS Code UI.

    What you can do is write a feature-request issue ticket to the VS Code GitHub repo asking for such a setting to be created to disable these and explaining why you think that would be a desirable thing to have. Bear in mind that for feature-requests to make it into their backlog, it needs to get enough thumbs-up reactions from the rest of the community. If you do create such an issue ticket, add a link to it here for posterity.

    Login or Signup to reply.
  2. There is work in progress to make an option to disable/modify that Explorer tooltip, see A option which can modify the path hover in vscode file explorer and a good discussion here: Polish explorer tooltip rendering. It quickly got enough votes to get on the Backlog but is being worked on.

    There is this setting:

    explorer.experimental.hover 
    

    which I believe will be released to Stable early March 2023. For some weird reason, my Insiders Build is not showing that option so that I could test it, so it is unclear to me exactly what it will change.

    In any case, that setting should appear in Stable in early March 2023 so you can see what it changes.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search