| Issue | Primary Cause | Quick Fix |
|---|---|---|
| VS Code Git Flickering | GPU Hardware Acceleration Conflict | Disable Hardware Acceleration in argv.json |

What is the VS Code Git Extension Screen Flickering Fix?
The VS Code Git extension screen flickering fix refers to a series of configuration adjustments designed to stop the editor’s UI from blinking or flashing. This usually happens when the Git extension interacts with the sidebar or source control view.
This issue is frequently tied to how Visual Studio Code renders its interface using Electron. When Git background processes refresh, they can trigger a redraw conflict with your Graphics Processing Unit (GPU).
Step-by-Step Solutions
Method 1: Disable Hardware Acceleration
This is the most effective solution for most users. Disabling hardware acceleration forces VS Code to use software rendering, which bypasses GPU-related flickering.
1. Open the Command Palette using Ctrl + Shift + P (Windows/Linux) or Cmd + Shift + P (macOS).
2. Type “Preferences: Configure Runtime Arguments” and press Enter.
3. This opens the argv.json file. Add the following line:
"disable-hardware-acceleration": true
4. Save the file and restart VS Code completely.
Method 2: Update Your GPU Drivers
Outdated display drivers often cause rendering artifacts in Electron-based apps like VS Code. Ensure your NVIDIA, AMD, or Intel drivers are current.
| OS | Action |
| Windows | Use Device Manager or GeForce Experience/Adrenalin software. |
| macOS | Update via System Settings > General > Software Update. |
Method 3: Launch with Disable GPU Flag
If you cannot open the editor to change settings, you can launch it via the terminal with a specific flag to test the fix.
code --disable-gpu
If the flickering stops, proceed with Method 1 to make the change permanent.
Method 4: Adjust Git Autorefresh Settings
Sometimes the frequent polling of the Git extension causes the UI to stutter. You can increase the refresh interval or disable specific Git indicators.
1. Go to Settings (Ctrl + ,).
2. Search for “Git Autorefresh”.
3. Uncheck the “Git: Autorefresh” box or set “Git: Decorate Priority” to a different value to reduce UI updates.