You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
White flash when opening a new window maximized or fullscreen #132339
bugIssue identified by VS Code Team member as probable bugelectronIssues and items related to ElectronupstreamIssue identified as 'upstream' component related (exists outside of VS Code)windowsVS Code on Windows issuesworkbench-os-integrationNative OS integration issues
Set "Window: New Window Dimensions" to "maximized" or "fullscreen"
From an existing instance of vscode, open a new instance
The issue was reported here and closed because Electron 8 apparently fixed the issue. However, I'm still having this issue with Electron 13 on Windows. The issue is not present on Manjaro.
Thanks for reporting this issue! Unfortunately, it's hard for us to understand what issue you're seeing. Please help us out by providing a screen recording showing exactly what isn't working as expected. While we can work with most standard formats, .gif files are preferred as they are displayed inline on GitHub. You may find https://gifcap.dev helpful as a browser-based gif recording tool.
If the issue depends on keyboard input, you can help us by enabling screencast mode for the recording (Developer: Toggle Screencast Mode in the command palette).
I don't normally use WSL to launch. That is just a gif I found on a previous issue that was similar, but that issue had a different cause and fix. The white flash looks the exact same to me. It occurs when I launch from the Windows GUI, from CMD, or from WSL.
I only have a dedicated graphics card and no integrated graphics on my Ryzen CPU, so I wouldn't expect anything different to happen. I have tried code --disable-gpu in CMD and WSL and I still have the white flash.
Like I said, it happens when launching from the terminal or from the GUI. It looks exactly like the GIF, and the flash of white is the exact same. I could record 7 different gifs, one from the launching in taskbar, one from the start menu, one from a desktop icon, a new window from VSCode, from CMD, Powershell, and WSL. It all results in the same thing.
The important step is that it first opens maximized or fullscreen on the Windows operating system.
[main 2021-09-09T03:32:20.601Z] Sending some foreground love to the running instance: 3180
[main 2021-09-09T03:32:20.606Z] Sending env to running instance...
[main 2021-09-09T03:32:20.728Z] Sent env to running instance. Terminating...
[main 2021-09-09T03:32:20.728Z] Lifecycle#kill()
I could record 7 different gifs, one from the launching in taskbar, one from the start menu, one from a desktop icon, a new window from VSCode, from CMD, Powershell, and WSL.
Yes it is fine, please attach a recording of what you are observing.
As for the code --verbose output, looks like you are already having a running instance. Please close all running instances and run that command.
Here's the log file for opening the first instance, although it's a bit cluttered because of extensions and workspaces. I have already reproduced the error without extensions on a new install of VSCode Insiders, so extensions, themes, and workspaces are irrelevant. output.txt
I found a fix or say workaround for this white flash issue when opening maximized VS Code, had to experiment with various values. I found that VS Code makes a delay on purpose when vscode is maximized or in fullscreen mode. This is to wait until vscode window is fully loaded and then show it. While waiting, it makes default white flash which is an electron default mechanism. White Flash Fix:
Open C:\Users\AppData\Local\Programs\Microsoft VS Code\resources\app\out\main.js
Search for "show:"
Replace line "show:e.mode!==0&&e.mode!==3" with "show:true,".
Save & Exit.
This will remove the delay and instantly loads the window which avoids white flash of electron.
I have already posted the solution previously. Why creating a duplicate comment each time with the same workaround?
The file to edit is plain text. Notepad, VSCode or any text editor will do. No more than a minute or two to edit manually.
Every time the editor updates, the main.js file changes. My script is just a way to automate the workaround. You're free to do it manually if you prefer.
bugIssue identified by VS Code Team member as probable bugelectronIssues and items related to ElectronupstreamIssue identified as 'upstream' component related (exists outside of VS Code)windowsVS Code on Windows issuesworkbench-os-integrationNative OS integration issues
Activity
deepak1556 commentedon Sep 8, 2021
/gifPlease
vscode-triage-bot commentedon Sep 8, 2021
Thanks for reporting this issue! Unfortunately, it's hard for us to understand what issue you're seeing. Please help us out by providing a screen recording showing exactly what isn't working as expected. While we can work with most standard formats,
.giffiles are preferred as they are displayed inline on GitHub. You may find https://gifcap.dev helpful as a browser-based gif recording tool.If the issue depends on keyboard input, you can help us by enabling screencast mode for the recording (
Developer: Toggle Screencast Modein the command palette).Happy coding!
robbycbennett commentedon Sep 8, 2021
deepak1556 commentedon Sep 9, 2021
Are you running via WSL ? Does the issue repro if you launch with
code --disable-gpu?robbycbennett commentedon Sep 9, 2021
I don't normally use WSL to launch. That is just a gif I found on a previous issue that was similar, but that issue had a different cause and fix. The white flash looks the exact same to me. It occurs when I launch from the Windows GUI, from CMD, or from WSL.
I only have a dedicated graphics card and no integrated graphics on my Ryzen CPU, so I wouldn't expect anything different to happen. I have tried
code --disable-gpuin CMD and WSL and I still have the white flash.deepak1556 commentedon Sep 9, 2021
Can you provide a screen capture from your device showing the exact steps of launch ? Also attach the output of
code --verboserobbycbennett commentedon Sep 9, 2021
Like I said, it happens when launching from the terminal or from the GUI. It looks exactly like the GIF, and the flash of white is the exact same. I could record 7 different gifs, one from the launching in taskbar, one from the start menu, one from a desktop icon, a new window from VSCode, from CMD, Powershell, and WSL. It all results in the same thing.
The important step is that it first opens maximized or fullscreen on the Windows operating system.
[main 2021-09-09T03:32:20.601Z] Sending some foreground love to the running instance: 3180
[main 2021-09-09T03:32:20.606Z] Sending env to running instance...
[main 2021-09-09T03:32:20.728Z] Sent env to running instance. Terminating...
[main 2021-09-09T03:32:20.728Z] Lifecycle#kill()
deepak1556 commentedon Sep 9, 2021
Yes it is fine, please attach a recording of what you are observing.
As for the
code --verboseoutput, looks like you are already having a running instance. Please close all running instances and run that command.robbycbennett commentedon Sep 9, 2021
Here's the log file for opening the first instance, although it's a bit cluttered because of extensions and workspaces. I have already reproduced the error without extensions on a new install of VSCode Insiders, so extensions, themes, and workspaces are irrelevant.
output.txt
robbycbennett commentedon Sep 13, 2021
Were you able to reproduce the issue? I couldn't get the screencast website you shared to work. Anyway, this makes no difference.
77 remaining items
Frulfump commentedon Jun 13, 2025
I saw that the milestone was changed to June but I still want to confirm it's still happening with the latest release from ~1 hour ago
Version: 1.102.0-insider (user setup)
Commit: 7e4e0f4
Date: 2025-06-13T05:04:03.051Z
Electron: 35.5.1
ElectronBuildId: 11727614
Chromium: 134.0.6998.205
Node.js: 22.15.1
V8: 13.4.114.21-electron.0
OS: Windows_NT x64 10.0.19045
LinhTrucVo commentedon Jun 28, 2025
I updated to the latest version but the issue is still there
2025-06-28.11-37-56.mp4
BowkC commentedon Jul 1, 2025
I am also experiencing this issue
Brand new laptop Win 11
Vers 1.101.2
robbycbennett commentedon Jul 19, 2025
Here's a python script that makes the workaround easier.
adityaonx commentedon Aug 19, 2025
I have already posted the solution previously. Why creating a duplicate comment each time with the same workaround?
robbycbennett commentedon Aug 19, 2025
Every time the editor updates, the main.js file changes. My script is just a way to automate the workaround. You're free to do it manually if you prefer.
Frulfump commentedon Oct 2, 2025
This is labeled with "upstream-issue-fixed" which is incorrect electron/electron#35362 is still open.
I added the basic info to that issue but might as well include it here
Still an issue, repros with Electron 37.5.1 in VS Code Insiders 1.105.0-insider (not able to check stable atm)
Version: 1.105.0-insider (user setup)
Commit: 6e60e67
Date: 2025-10-01T05:02:28.879Z
Electron: 37.5.1
ElectronBuildId: 12409799
Chromium: 138.0.7204.251
Node.js: 22.19.0
V8: 13.8.258.32-electron.0
OS: Windows_NT x64 10.0.19045
adityaonx commentedon Dec 7, 2025
I mentioned that issue still persist after they closed the issue as fixed!
I'll reopen a PR to submit a fix as earlier wasn't accepted!
adityaonx commentedon Dec 9, 2025
#281765
No Updates to this PR from 2 days ago!
Frulfump commentedon Dec 17, 2025
This no longer repros for me but I'm now on Windows 11 (25H2) as opposed to Windows 10 for the previous reported instances from me.
robbycbennett commentedon Dec 19, 2025
Yay! It's fixed on Windows 11 for me too and Windows 10 is no longer supported. I have tested both maximized and full screen.