New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow to minimize VS Code to tray #11723
Comments
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. |
I agree. Just keep it in RAM and show on file opening (e.g. add a new tab with the file). |
@bpasero @jrieken 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. |
Closing VS Code to tray and pinning important files just like important tabs in the browser would improve my productivity SO MUCH. Please think about these two (imo) related features that make working for some people way more productive. |
Can't wait for this feature |
I hope we get this in the near future so that VS Code can finally replace Notepad++. |
Hi, I also today removed Notepad++ and installed VS code. Just need to add an option to make it so that when clicking X or Alt+F4 there it minimizes to tray instead of closing so the re-loading is faster. I have i5, 16 GB RAM and SSD but its still not fast enough to load up like Notepad++. Thanks. |
@PowerAccess You should really be looking into other things than the vscode github repo if it's taking 7 seconds to load on a quad-core. More than likely you have a strong bottleneck somewhere else, or a botched installation or maybe even a virus. There is clearly more to it than that and closing to tray won't solve the problem for you at all. |
@farid-fari Even with AV disabled, vscode is a bit slow IMO in opening (though not as bad) especially with plugins, if you include time until file content first gets rendered (and disabling major AV's isn't neccisarily a good suggested workaround) - though at least it's absolutely nothing like time to open in full Visual Studio, hence why I use vscode as default text editor. |
Yes its not as instant as N++ but takes 2 seconds to load and then to colour the code. How to speed it up ? |
@kikloo you probably can't do much. Microsoft are doing their best to make it as fast as possible but the overhead from electron (no debates pls) makes it hard to go under a certain limit. |
Also, please bear in mind that it's not necessarily a matter of VS Code performance / slow machines etc. If you have opened a file / bunch of files on a remote location, then even if your machine is very fast, it will be as slow as the network connection - and if the file has gone unavailable (lost network, whatever), it will take even more. Keeping it running all the time is the way to go. |
I can't believe I'm seeing people outraged because a program takes a whole 11 seconds to load. That is some kind of serious problem right there. One can do so many things in 11 seconds and that should be outlawed. You must have been pacing back and forth in anticipation. |
It's not about the 11 seconds once. It's happening all the time, if you're used to close this kind of application. Having Code in the background all the time would bring a bit benefit for some developers, that need the feature. |
Having Code run in the background is a wonderful idea. I believe that would benefit any programmer who needs their code to stay running throughout the day. Most people I know have had at least one opportunity where their mouse slipped off of the desk and it just happened to slide up to the corner and hit the X button when it landed. Or people like me who have children who sneak over and click things. |
As a workaround, I'm currently using the excellent RBTray and its tl;dr: Minimizing to tray is still a desperately needed feature! |
I just like minimizing programs I don't use all the time to the tray. I suppose I can put them on a second desktop, but I like my tray. |
Agreed
…On Sun, Mar 29, 2020 at 2:03 PM, PowerCoder ***@***.***> wrote:
I just like minimizing programs I don't use all the time to the tray. I suppose I can put them on a second desktop, but I like my tray.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, [view it on GitHub](#11723 (comment)), or [unsubscribe](https://github.com/notifications/unsubscribe-auth/AMHIGX324FQLDD7H5IN63ILRJ6ZQ3ANCNFSM4CPCF7AQ).
|
I am not sure we can achieve it by the way like minimize outlook to tray. |
Please? |
Hope consider it again |
Plz? |
Please do it! |
Please consider again, would find this feature super useful |
go go minimize vs code to tray |
bruh, please do a minimize vscode to tray setting |
just uninstalled the notepad, hope vscode can replace it, but only to find out that it takes too much time on launching. |
Seconded -- VS Code really takes way too much time to launch compared to others. Having the window launch maximized on startup is not nice. |
For reference, this workaround I tried does NOT work
|
MinimizeToTray This works pretty well. |
A simple workaround could be using this Auto Hot Key script
|
Thanks to @anandinasu, the script help me a lot.
Here is the modified version:
|
Does it work for you? It seems this script just minimize to taskbar, not minimize to tray. 🤔 |
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. |
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. |
Please do it! |
I am looking for this feature in VS Code too 😄 |
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.
The text was updated successfully, but these errors were encountered: