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
Even though VSC is launching very fast (clean install, 3s on my machine) it is not instant like the classic sublime text or N++.
If we could keep the editor loaded all the time we would get faster file opening times by sacrificing ram.
Therefore I suggest addition of editor tray and "Minimize to tray"/"Close to tray" options.
The editor would be then closed by right clicking the tray icon and selecting "close" option there.
Reacted by Rhywun, Dan Moorehead, Christian Buntrock, Vla Dunev, Sebastian Holmqvist, MJ, AlexTeh, Mike, Michael Bolanos Vargas, Luca Iaconelli and 113 more
Reacted by Jan Niklas Hasse, Alexander, Shawn Melton and ntdungk55
Reacted by Boris
Reacted by Alex Kladov, songyuan, gabriellima, Michele Preti, Alex, qufanqi, ntdungk55, 我是小渡, luisluftcrossover, Vivek Sharma and 1 more
Reacted by luisluftcrossover, qufanqi, Vivek Sharma and Boris
This would be very helpful, making it feasible to preload vscode on startup, as is necessary, as vscode is extremely slow to launch to use as a Notepad++ replacement, taking 11 seconds for a cold startup and 7-8 seconds for Reload Window after that. This is with high-end SSD, quad-core CPU and all extensions disabled, even with vscode added excluded by Webroot and Anti-Malware.
Reacted by chengxuncc, Srisaravana Manicaraja, Omar Ibrahim, kimpurcell, fmn, Kwmi, qufanqi, Vivek Sharma, Fabian, Loong and 1 more
Even if some have faster startup for some reason, it would shave off at least 2-3 seconds for them, which could make the difference it not being annoying to use as a Notepad++ replacement for opening misc text files.
Also, even for those with faster startup initially, adding a number of extensions could still slow down further.
Closing VS Code to tray and pinning important files just like important tabs in the browser would improve my productivity SO MUCH.
The use-case is: I open an important file, then open some log, read it and by accident keep closing VS Code with the X button. Then I have to reopen the program and reopen the important file I am working on.
Please think about these two (imo) related features that make working for some people way more productive.
just uninstalled the notepad, hope vscode can replace it, but only to find out that it takes too much time on launching.
it's a really useful function for me that keeps it running in backgroud, opens any files in a second.
can we reconsider about this?
VSCode can now minimize to tray with a hotlkey. I can assure it, for I just did it by accident. I press some specific keys, the keys of left hand area, perhaps with ctrl or shift. This was what it happened when I pressed the hotkey: VSCode window was closed as I thought so, while it didn't acctually. Since I thought it was closed, I tried to reopen it with right clicking in the folder and choosing "Open With Code" option.
However, nothing happened after I clicked on "Open With Code", even clicking for several times. I was wondering if someting was wrong with my PC. And I tried to open another folder with VSCode, Well, it worked this time, VSCode was opened in a smaller window just like this. I didn't realize it was because of the existence of a formerly opened VSCode window. I tried to open VSCode with right clicking in the original folder for times again, nothing happened still.
When I was just about to reboot my PC, I found the very vscode icon lying in my tray with other minimized programs. I clicked on the icon, the original window that I thought to be closed was restored. I was suprised, thinking that VSCode can be unexpectedly minimized to tray. Unfortunatelly, I didn't capture the screenshot before I clicked on the icon and it was gone with restoring of its windows. I tried to google for methods to minimize VSCode to tray, with any hotkey or command.
Well, it was not until then that I know this is still an unrealized issue on github.
Guys, you can try to reproduce this phenomenon with some key combinations in the left hand area and come back to comment on this thread when you are free. I did try for half an hour, sorry you tell you that I was unable to reproduce it either. All I can tell you guys is what I just experienced half an hour ago. By the way, I don't think it was caused by any extensions, for I didn't install any extensions else except C++ and python grammar extensions.
I am looking for this feature in VS Code too 😄
Why has this thread been closed as being "out of scope"? Some programs offer this feature, and especially when I want to run something for longer time in a terminal in VS Code, minimizing it to the tray would be really helpful (without needing extra programs for that).
Activity
[-]Feature: Add close to tray option[/-][+]Allow to minimize VS Code to tray[/+]PowerWeb5 commentedon Jan 15, 2017
This would be very helpful, making it feasible to preload vscode on startup, as is necessary, as vscode is extremely slow to launch to use as a Notepad++ replacement, taking 11 seconds for a cold startup and 7-8 seconds for Reload Window after that. This is with high-end SSD, quad-core CPU and all extensions disabled, even with vscode added excluded by Webroot and Anti-Malware.
CBuntrock commentedon Jan 16, 2017
I agree. Just keep it in RAM and show on file opening (e.g. add a new tab with the file).
PowerWeb5 commentedon Jan 23, 2017
Benjamin Pasero (@bpasero) Johannes Rieken (@jrieken)
Could this be added as a workaround for extremely slow startup described in #15455 ?
Even if some have faster startup for some reason, it would shave off at least 2-3 seconds for them, which could make the difference it not being annoying to use as a Notepad++ replacement for opening misc text files.
Also, even for those with faster startup initially, adding a number of extensions could still slow down further.
tivoa-gigatronik commentedon Mar 22, 2017
Closing VS Code to tray and pinning important files just like important tabs in the browser would improve my productivity SO MUCH.
The use-case is: I open an important file, then open some log, read it and by accident keep closing VS Code with the X button. Then I have to reopen the program and reopen the important file I am working on.
Please think about these two (imo) related features that make working for some people way more productive.
m34nbunny commentedon Sep 27, 2017
Can't wait for this feature
37 remaining items
SekiBetu commentedon Mar 30, 2021
just uninstalled the notepad, hope vscode can replace it, but only to find out that it takes too much time on launching.
it's a really useful function for me that keeps it running in backgroud, opens any files in a second.
can we reconsider about this?
altosaar commentedon May 20, 2021
Seconded -- VS Code really takes way too much time to launch compared to others. Having the window launch maximized on startup is not nice.
altosaar commentedon May 20, 2021
For reference, this workaround I tried does NOT work
C:\Users\%USERNAME%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup)teamayu commentedon Jul 23, 2021
MinimizeToTray
https://www.softpedia.com/get/PORTABLE-SOFTWARE/System/System-Enhancements/Minimize-ToTray.shtml
This works pretty well.
anandinasu commentedon Sep 13, 2021
A simple workaround could be using this Auto Hot Key script
tifish commentedon May 27, 2022
Thanks to anandinasu, the script help me a lot.
I modified it a bit to solve 2 problems:
WinClosemay change default behavior of some apps.Alt+F4, I want to close current document.Here is the modified version:
BettyJJ commentedon Feb 6, 2023
Does it work for you? It seems this script just minimize to taskbar, not minimize to tray. 🤔
MMMMMoris commentedon Aug 9, 2023
VSCode can now minimize to tray with a hotlkey. I can assure it, for I just did it by accident. I press some specific keys, the keys of left hand area, perhaps with ctrl or shift. This was what it happened when I pressed the hotkey: VSCode window was closed as I thought so, while it didn't acctually. Since I thought it was closed, I tried to reopen it with right clicking in the folder and choosing "Open With Code" option.
However, nothing happened after I clicked on "Open With Code", even clicking for several times. I was wondering if someting was wrong with my PC. And I tried to open another folder with VSCode, Well, it worked this time, VSCode was opened in a smaller window just like this. I didn't realize it was because of the existence of a formerly opened VSCode window. I tried to open VSCode with right clicking in the original folder for times again, nothing happened still.
When I was just about to reboot my PC, I found the very vscode icon lying in my tray with other minimized programs. I clicked on the icon, the original window that I thought to be closed was restored. I was suprised, thinking that VSCode can be unexpectedly minimized to tray. Unfortunatelly, I didn't capture the screenshot before I clicked on the icon and it was gone with restoring of its windows. I tried to google for methods to minimize VSCode to tray, with any hotkey or command.
Well, it was not until then that I know this is still an unrealized issue on github.
Guys, you can try to reproduce this phenomenon with some key combinations in the left hand area and come back to comment on this thread when you are free. I did try for half an hour, sorry you tell you that I was unable to reproduce it either. All I can tell you guys is what I just experienced half an hour ago. By the way, I don't think it was caused by any extensions, for I didn't install any extensions else except C++ and python grammar extensions.
ruri4 commentedon Jan 14, 2024
Hey guys, since this issue hasn't been solved yet, This program here can minimize-to-tray any window, it's just a workaround but it's an easy setup.
https://github.com/benbuck/rbtray
It was already mentioned here but I'll just bump it incase anyone don't want to read everything.
chloe0xff commentedon Apr 6, 2024
Please do it!
Hope consider it again
d-kleine commentedon Apr 6, 2024
I am looking for this feature in VS Code too 😄
Why has this thread been closed as being "out of scope"? Some programs offer this feature, and especially when I want to run something for longer time in a terminal in VS Code, minimizing it to the tray would be really helpful (without needing extra programs for that).
Nick2bad4u commentedon Dec 24, 2024
still not here?
Milor123 commentedon Apr 10, 2025
any solution for 2025?
whyboris commentedon Aug 25, 2026
Still desirable in 2026 😔
Slow startup time can be 0ms instead, if
close to traysetting is added 🙇whyboris commentedon Aug 25, 2026
As for feasibility: VS Code is Electron, no? It's fewer than 20 lines of code to configure and get an Electron application to hide to tray 🤷
Adding this very-much-in-demand feature wouldn't take much effort. Please 🙇 PLEASE 🙇 add this feature ❤️