47

I had Visual Studio Code app's icon in my Mac's Dock before, but I can't put it there again.

I tried dragging and dropping the app bundle from the /Applications folder, but the icon doesn't land in the Dock. Have I accidentally banned Visual Studio Code.app from the macOS Dock?

If yes, how can I revoke the ban? I can add icons for other apps just fine. Even when I have Visual Studio Code.app running, the app's icon doesn't appear in the Dock.

How do I resolve the issue and get the app icon to show in the Dock?

  • Welcome to Ask Different :) Try restring the Dock by running killall Dock in the Terminal. – Nimesh Neema Dec 5 '18 at 9:55
  • @NimeshNeema that worked :D Plz make it as an answer and I'll mark it as correct! Thanks! – Brainmaniac Dec 5 '18 at 10:01
136

Have I accidentally banned Visual Studio Code.app from the macOS Dock?

No.

How do I resolve the issue and get the app icon to show in the Dock?

You can try resolving the issue by killing the Dock process and re-launching it afresh. To do that, launch Terminal.app and execute the following command-line:

killall Dock

The command-line is case sensitive. Once executed, the Dock would momentarily disappear and then reappear. Now you should be able to add the Visual Studio Code.app icon normally by dragging in the app bundle. You should also be able to see the icon normally when the app is running.

| improve this answer | |
  • 2
    Yes, basic troubleshooting steps are usually: 1. Killall the dock 2. Killall the Finder 3. Reboot – Manchineel Dec 5 '18 at 22:29
  • 7
    I did reboot my Mac and it didn't work. Killing the dock as described worked. That is weird. Thank you. – Maxime Jan 15 '19 at 14:13
  • 1
    That... actually worked. I don't know why. Thank you! – Con Antonakos Apr 11 '19 at 15:39
  • 1
    "Have you tried turning it off and on again?" – Drenmi May 29 '19 at 8:21

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .