Alfred and Spotlight don't detect VSCode even though I've it on shortcuts When I installed the VSCode I had added it to dock applications.

I am not able to find it/open it with Alfred or Spotlight. I tried to search for: code, VSCode, visual studio code, and nothing. It seems like if I remove VSCode from dock, I won't be able to start it again.

Any idea?
I had the same problem and just managed to fix it.

I went to System Preferences > Spotlight > Search Results and then unchecked "Applications", then re-checked "Applications" and it instantly fixed the problem.