Reputation: 309
This is how Vscode appear in task bar , I don't know why
Upvotes: 17
Views: 19413
Reputation: 1
This works for me:
And now it works!
Upvotes: 0
Reputation: 1
You can also just run the following:
Stop-Process -Name explorer; Remove-Item "$env:USERPROFILE\AppData\Local\IconCache.db" -Force; Start-Process explorer
Upvotes: 0
Reputation: 1
After updating windows 11 it resolved, I had also faced the same issue previously 😅
Upvotes: 0
Reputation: 11
This morning I just run Windows 10 and found empty blanks for VScode icons. I've tried deletion "IconCache.db"
in "%userprofile%\AppData\Local\"
but it didn't help me. Then I found that path to "Code.exe"
somehow was changed: in blank icon it was like "c:\Users\%userprofile%\AppData\Local\Programs\Microsoft VS Code\Code.exe
, but actual path to Code.exe is "c:\Users\%userprofile%\AppData\Local\Programs\Microsoft VS Code\_\Code.exe"
. So I changed path and it fixed up icon.
Upvotes: 1
Reputation: 739
Open Windows Explorer, go to %userprofile%\AppData\Local
, delete IconCache.db
. (This file is hidden, so it you don't see it, you will need to adjust your Windows Explorer settings to show hidden files.)
Open Task Manager, go to Processes tab, highlight explorer.exe
, and click End Process. Your desktop will "disappear."
Still in Task Manger, select File > New Task (Run...), type explorer.exe
, and click OK. Your desktop should reappear, with the previously missing icons.
Upvotes: 54
Reputation: 1
I used the following:
Finally, I run the VSC shortcut as administrator.
The blank icon disappeared
Upvotes: 0
Reputation: 109
This worked for me on Windows 11.
Open VScode, the blank icon is displayed on the taskbar.
Right click on the taskbar icon and Pin it.
Now right click again but now to Unpin it. The icon should now be visible.
Upvotes: 5
Reputation: 1
I was having a similar issue.
I moved the file location the original shortcut went to then created a new shortcut for the new destination. The shortcut on the desktop had the correct icon, but the one on the task bar did not. when I pined it to the task bar, then unpinned it, the vscode logo showed up on the task bar. When I pined it again, it went back to the empty page logo. When I closed it and opened it again, it went back to the empty page logo.
I tried right clicking on the taskbar logo then right clicking on the button the said Visual Studio Code, as directed in one of the previous posts, and it kept giving me an error message. Turns out the task bar logo was still trying to load the old shortcut for some reason, even though I was opening it from the new shortcut. It gave me an option to delete the old shortcut again and once I did that the logo popped right up.
Upvotes: 0
Reputation: 844
In my case, I'm using a portable version and I just updated it and the folder location was different than the last one. I also deleted the older version of the VS Code which was installed using the installer.
Above image is after I resolve the issues
Upon clicking the Visual Studio Code
button it says that the shortcut is missing its target.
1). I pinned that to my taskbar.
2). Clicked on that shortcut and Windows told me to delete it since the target is missing.
3). And opened the VS Code regularly as I do normally from my Unity Editor.
Note. I'm using VS Code with Unity so your milage may vary.
Upvotes: 2
Reputation: 91
I also experienced like that
Upvotes: 5
Reputation: 1
For me after killing VS Code in task manager and then again opening it using window key helped.
Upvotes: 0
Reputation: 14074
I started seeing this after I uninstalled VS Code installed with the system installer to C:\Program Files\Microsoft VS Code
, and re-installed it with the user installer.
All I had to do was:
Upvotes: 0
Reputation: 71
I used another method that worked pretty well
1.Open VS Code
2.Right-click on the open VsCode icon that is blank in your task bar.
3.Right-click the button that says Visual Studio Code, click on properties.
4.On the Shortcut tab, click on Change Icon...
5.Select the VsCode Icon and press Apply.
And that should fix the problem.
Upvotes: 7
Reputation: 113
This just happened to me, and after a bit of fiddling around I managed to fix it.
Upvotes: 9