Magnus Erkenfelt
Magnus Erkenfelt

Reputation: 221

Go to File not working in Visual Studio Code

I have a problem with Visual Studio Code. When I Press Ctrl+P I get a message saying:

[UriError]: Scheme is missing: {scheme: "", authority: "", path: "undefined", query: "", fragment: ""}, then nothing happens.

I have tried restarting the computer and Code, adding proxy settings, reinstalling Code. But the problem still exists. I started a few days ago, not sure if it was in combination with an upgrade.

I have checked that ctrl+p is assigned to the Go to File shortcut.

Upvotes: 8

Views: 10784

Answers (5)

Hasidul Islam
Hasidul Islam

Reputation: 416

In my case, my VS Code Ctl+p stopped working after updating the VIM extension. It was fixed after I downgraded to "1.25.2" as instructed by C.T. Bell above.

Upvotes: 0

C.T. Bell
C.T. Bell

Reputation: 513

If you're using the Vim Extension:

  • Right click the vim extension in the extensions browser
  • Choose "Install Another Version"
  • Choose "1.25.2"
  • Reload vscode

Credit: @mathtick

Upvotes: 8

GM1
GM1

Reputation: 491

Check your VS keyboard bindings - most probably you assigned another combination with ctrl+P, change the other one you find and then it should work - that was the scenario I faced with it

Upvotes: 5

Muhammad Nadeem
Muhammad Nadeem

Reputation: 181

If your ctrl+p shortcut does not open Go to file search then try ctrl+e VsCode also has this command to go to file search.

Upvotes: 2

Magnus Erkenfelt
Magnus Erkenfelt

Reputation: 221

After removing and re-cloning the project the error was gone.

Upvotes: 1

Related Questions