VSCode "Open With Code" in explorer menu throws error - visual-studio-code

After reinstalling vscode because I forgot to add it to start menu,
whenever I clicked "open with code" after right clicking in explorer menu, it gave me this error:
"Application not found"
I told vscode to add this option in explorer when installing!
Any help?

I ran into this after a reinstall of VS Code. I had switched from the User Installer to the System Installer version.
The install didn't update the registry to change the Icon and "Open with Code" context menu to use the new System path to Code.exe.
So you have a couple options. Reinstall your initial version (User vs System) or update your registry anywhere Code.exe is referenced.
User path: C:\Users[username]\AppData\Local\Programs\Microsoft VS Code\Code.exe
System path: C:\Program Files\Microsoft VS Code\Code.exe
Or perhaps even uninstall, clear out the references to Code.exe in your Registry, then install the version you'd like

Related

How do I set up Visual Studio Code in the taskbar to show the recent workspaces?

I just installed Visual Studio Code on my new Windows 10 PC and pinned it to the taskbar. When I right-clicked on the VS Code Icon on my old PC it suggested to open the recently opened workspaces. But now it only shows 'Visual Studio Code' and 'Remove from Taskbar'. I added VS Code from this Path to the taskbar: C:\Users\chris\AppData\Local\Programs\Microsoft VS Code\Code.exe.
This is the result of right-clicking the Icon in the taskbar:
But I want it to also show the recently opened workspaces like this:
Technologies:
Windows 10 Home
Visual Studio Code 1.51.1
Desktop right click ->Personalize ->Start ->Show recently opened items in Jump Lists on Start and Taskbar, turn this on.
You need to enable this feature and open some Visual Studio projects before you can find it in the recent projects in the taskbar.
As you said, the recent list in the taskbar is not related to the "Open recent" in the Open Project interface of Visual Studio. The former is the historical operation record of Windows.
If you want to delete the records in the recent list, you can right-click the project name and select Remove from list.

Open with code is not working in VSCode - Application not found

When i right click to open my project folder in VSCode, it is not opening, instead popup is shown as "Application not found". I tried reinstalling, but didn't work.
Try to open your project from File-> Open Folder menu in VS code. Than double click on your loaded project files.
I ran into this after a reinstall of VS Code. I had switched from the User Installer to the System Installer version.
Image of current download optons
The install didn't update the registry to change the Icon and "Open with Code" context menu to use the new path to Code.exe.
So you have a couple options. Reinstall your initial version (User vs System) or update your registry anywhere Code.exe is referenced.
User path: C:\Users[username]\AppData\Local\Programs\Microsoft VS Code\Code.exe
System path: C:\Program Files\Microsoft VS Code\Code.exe
Or perhaps even uninstall, clear out the references to Code.exe in your Registry, then install the version you'd like

Unity does not open scripts using vscode, even tho it is set as an external text editor

So becouse of my visual studio 2017 trial is about to end, i decided to switch to vs code and make a new project. The problem is that i cant open any scripts by double-clicking in that new project using vs code. Simply nothing happens. When i go to my older project and try to open scripts there using vscode everything works fine. When i try to create new projects the problem with scripts not opening persists.
Both of the projects run on the same unity version, and both of them have vscode set as an external script editor in the preferences. Task manager doesnt show anything related to vscode.
Thanks for any help!
I had same problem where it opened up VS but not the exact script I was trying to open. I found out I had to 'reset argument' under "Edit--> Preferences --> External Tools" and just press reset argument.
Or just copy my line below:
"$(ProjectPath)" -g "$(File)":$(Line):$(Column)
External tools
You need to change your external editor to VsCode.
Go to Edit -> Preferences -> External tools
Click on the External Script Editor and browse for vscode.

Open folder in Explorer from VS Code

Say I have a project/folder open in VS Code and I want to open the folder in Windows Explorer, is there keyboard shortcut or a VS Code Extension for that? Sometimes I also need to go to the project folder in command prompt.
In Visual Studio 2017, there's a menu option to open the folder and an extension for quickly getting to the project folder in command prompt -- see below:
How do I handle these in VS Code?
Right click on a file or folder from the left side explorer of VSCode, then select "Reveal in Explorer". Now you can see the folder in windows explorer.

Open with VSCode from right click in Windows Explorer, did't reopen the previous files

Description:
When i open a selected file from windows explorer using right click menu with "Open with VS Code", VSCode only open the file i selsected. It did't reopen the previous files like sublime.
Is there any way to change this behavior?
already set "window.restoreWindows": "all"
OS: Windows 10 1803
VSCode 1.24.0