DannyDannyDanny
DannyDannyDanny

Reputation: 921

Why is powershell opening notepad instead of vscode?

Running explorer . opens an explorer windows

enter image description here

However, running code . for vscode opens code.cmd with a bunch of args.

enter image description here

Can anyone explain why this is happenining? and a possible rememdy?

Upvotes: 0

Views: 769

Answers (1)

DannyDannyDanny
DannyDannyDanny

Reputation: 921

Have you tried restarting it?

Restarting the machine (first in safe mode) and then normal mode solved the issue.

Note: Default apps (still) associates the .cmd extension with notepad but this doesn't prevent expected behavior.

Upvotes: 1

Related Questions