简体   繁体   English

任务栏中的 VSCode 图标为空白

[英]VSCode icon in task bar is blank

This is how Vscode appear in task bar, I don't know why任务栏出现Vscode是这样的,不知道为什么

在此处输入图像描述

Open Windows Explorer, go to %userprofile%\AppData\Local, delete IconCache.db.打开Windows Explorer,go到%userprofile%\AppData\Local,删除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.) (此文件已隐藏,因此您看不到它,您需要调整 Windows 资源管理器设置以显示隐藏文件。)

Open Task Manager, go to Processes tab, highlight explorer.exe, and click End Process.打开任务管理器 go 到进程选项卡,突出显示 explorer.exe,然后单击结束进程。 Your desktop will "disappear."您的桌面将“消失”。

Still in Task Manger, select File > New Task (Run...), type explorer.exe, and click OK.仍在任务管理器中,select 文件 > 新任务(运行...),键入 explorer.exe,然后单击确定。 Your desktop should reappear, with the previously missing icons.您的桌面应该会重新出现,之前缺少的图标。

This just happened to me, and after a bit of fiddling around I managed to fix it.这只是发生在我身上,经过一番摆弄后,我设法解决了它。

  1. Open VS Code打开 VS 代码
  2. Right-click on the open VsCode icon that is blank in your task bar.右键单击任务栏中空白的打开的 VsCode 图标。
  3. Click the button that says Microsoft Visual Studio Code单击显示 Microsoft Visual Studio Code 的按钮
  4. Right-click again, and click pin to task bar.再次右键单击,然后单击固定到任务栏。
  5. Voila

I used another method that worked pretty well我使用了另一种效果很好的方法

1.Open VS Code 1.打开VS代码
2.Right-click on the open VsCode icon that is blank in your task bar. 2.右键单击任务栏中空白的打开的 VsCode 图标。
3.Right-click the button that says Visual Studio Code, click on properties. 3.右键单击显示 Visual Studio Code 的按钮,单击属性。
4.On the Shortcut tab, click on Change Icon... 4.在快捷方式选项卡上,单击更改图标...
5.Select the VsCode Icon and press Apply. 5.Select VsCode 图标并按应用。

And that should fix the problem.这应该可以解决问题。

I also experienced like that我也有过这样的经历

  1. run as administrator vs code以管理员身份运行与代码
  2. richt click vs code on task bar and then select vs code, a confirmation will appear to delete the short cut, select yes richt点击任务栏上的vs code然后select vs code,会出现确认删除快捷方式,select是
  3. select pin to taskbar select 固定到任务栏
  4. right click and then select unpin to task bar右键单击然后 select 取消固定到任务栏
  5. holla this is work for me嘿,这是为我工作

In my case, I'm using a portable version and I just updated it and the folder location was different than the last one and I deleted the older version of the VS Code which was installed using the installer.就我而言,我使用的是便携式版本,我刚刚更新了它,文件夹位置与上一个不同,我删除了使用安装程序安装的旧版本的 VS Code。

VS Code 打开菜单

Above Image is after I resolve the issues上图是我解决问题后

Upon clicking the Visual Studio Code button it says me that shortcut is missing thr target.单击Visual Studio Code按钮后,它说我缺少快捷方式目标。 1). 1)。 Then I pinned that to my taskbar.然后我把它固定在我的任务栏上。 2). 2)。 Clicked on that shortcut and windows told me to delete since the target is missing.单击该快捷方式,windows 告诉我删除,因为目标丢失。 3). 3)。 And oppned the VS Code regurelly as I do normally from my Unity Editor.并像往常一样从我的 Unity 编辑器中选择了 VS Code。

Note.笔记。 I'm using VS Code with Unity so your milage may very.我正在将 VS Code 与 Unity 一起使用,因此您的里程可能会非常大。

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.在我将使用系统安装程序安装的 VS Code 卸载到C:\Program Files\Microsoft VS Code并使用用户安装程序重新安装后,我开始看到这一点。

All I had to do was:我所要做的就是:

  1. unpin VS Code from the task bar (this shortcut points to the old non-existent installation)从任务栏中取消固定 VS Code(此快捷方式指向不存在的旧安装)
  2. start VS Code from the start menu (the correct icon will now be shown)从开始菜单启动 VS Code(现在将显示正确的图标)
  3. pin VS code back to the task bar将 VS 代码固定回任务栏

For me after killing VS Code in task manager and then again opening it using window key helped.对我来说,在任务管理器中杀死 VS Code,然后使用 window 键再次打开它后,这有帮助。

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.当我将它固定到任务栏然后取消固定时,vscode 徽标出现在任务栏上。 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.我尝试右键单击任务栏徽标,然后按照之前的一篇帖子中的指示右键单击所述 Visual Studio Code 的按钮,但它一直给我一条错误消息。 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.它给了我一个选项来再次删除旧的快捷方式,一旦我这样做了,标志就会立即弹出。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM