How can I disable the inline indicators in VS Code?

Please provide

  • Operating system: macOS
  • SonarQube for VS Code plugin version: 4.31.0
  • Programming language you’re coding in: Python
  • Is connected mode used:
    • SonarQube Server Enterprise Edition v2025.1.1 (104738)

And a thorough description of the problem / question:

The VSCode extension adds inline markers like the red 2 in the attached screenshot in order to highlight where issues exist in your file:

The problem is that this affects the visible indentation, which makes writing indentation-sensitive languages like Python more difficult. In the screenshot above, the if/else are at the same level, however the marker (which is left over from before I changed the code and therefore could be removed) obfuscates that.

Is there a way to turn these markers off? Thanks!

Hi there @gchappel, welcome to Sonar Community! :waving_hand: :sonar:

Thanks a lot for raising this. I believe you should be seeing the SonarQube Issue Locations view in the File Explorer. There, you have a Clear button that will help you clear the decorations.

That said, I agree that this is not a very intuitive experience :confused: Would you mind sharing how you ended up seeing the decorations? Did you open an issue from SonarQube Server in the IDE?

Thanks again,
Sophio :woman_bowing:

I opened a checked-out Python project in my IDE, and they just came up without me doing anything else.

I have my IDE configured with a connection to our internal Sonarqube Enterprise instance, but most of what I work on is Terraform and CI/CD (Actions workflows, Jenkinsfiles, etc) which are not bound to Sonarqube projects. I do not commonly work on Python projects and this is the first time in a long time that I’ve opened a Python project that is enabled in our Sonarqube server.

Thank you!

I have created this parent ticket to group some UX improvements around this. I am assuming you clicked on an issue inside the SonarQube view and ended up seeing these decorations (this is normal behaviour for issues having multiple locations).

Just to confirm, did the clear button work for you?

All the best,
Sophio

Unsure 100% - I wasn’t really paying attention to what I did before spotting the issue, it was only when I found this issue that I realised I needed to know how I got there.

I saved and closed the file, so I got rid of it that way (re-opening the file doesn’t bring up the indicator because the problem it was referring to is addressed). Now I know about the “Clear” button (the issue locations sidebar pane was minimised, I was working out of the Sonarqube tab in the “Problems” area of the screen.

If I come across the issue again, I’ll try the “Clear” button and come back to confirm whether that worked or not.