skip to Main Content

I am using VS Code and my changes are showing under source control and I can see the details when I click on them, but I used to see green and red indicators on the line numbers when I was writing code. I can’t see them anymore. How can I fix this?

It sometimes works on some files, but doesn’t work on many other files.

Before:

enter image description here

Now:

enter image description here

enter image description here

I want it to appear as it is in the ‘before’ photo. I reset the settings etc. The strange thing is that this works on some files but not on others. I am saving all the files.

3

Answers


  1. Chosen as BEST ANSWER

    I solved this problem as follows:

    1. I deleted the C:UsersmyUser .vscode folder.
    2. I deleted the C:UsersmyUserAppDataRoaming code folder.
    3. I completely uninstalled Visual Studio Code from "Programs and Features".
    4. I restarted my computer.
    5. I reinstalled Vs Code.

    And the problem was solved.

    Update 03.15.2023

    This method seemed to have solved my problem at first, but later I realized that it was due to version 1.76, so I completely removed Visual Studio Code version 1.76 from my computer and downloaded version 1.75 from https://code.visualstudio.com/updates/v1_75. And I turned off automatic updates for Visual Studio Code.

    Settings -> Find for Update: Mode -> select none

    I did not encounter this bug in version 1.75.


  2. I had the same issue happen on version 1.76.1.

    Downgrading to version 1.75.1 and disabling auto updates fixed the issue for me.

    Looks like it’s probably a bug with the latest version (1.76.1)

    Login or Signup to reply.
  3. The same problem, suddenly stopped showing changes in the vscode itself, although the changes were visible in the Source Control tab. And not in all files at once. In some he showed, in others he did not. Whatever I did, nothing helped. Rolled back to the version earlier, following the advice from the answer above. It helped. Apparently, the bug of the version (1.76.1) is true.

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