Share via

Why there's no option "open with vscode" on windows 10?

Anonymous
2024-03-19T03:34:53+00:00

There was an option to open files with vscode but now it's not there. How do I get it back?

Windows for home | Windows 10 | Settings

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

  1. Ramesh 176.1K Reputation points Volunteer Moderator
    2024-03-19T03:44:13+00:00

    See:

    How to Restore Missing “Open with VS Code” Context Menu Option » Winhelponline

    https://www.winhelponline.com/blog/restore-open-with-vs-code-context-menu/


    Uninstall VS Code.

    Download the non-store version of VS Code from here:

    Run the setup.

    Enable the Add "Open with code" action... checkboxes during the setup.

    Click Next and finish the process.

    3 people found this answer helpful.
    0 comments No comments

3 additional answers

Sort by: Most helpful
  1. Anonymous
    2024-10-22T10:22:05+00:00

    If you don't want do re-install VSCode, you can simply ...

    1. Create a new registry-file, e.g. AddVSCodeToContextMenu.reg.2. Paste the following:
    Windows Registry Editor Version 5.00; Open files[HKEY_CLASSES_ROOT\*\shell\Open with VS Code]@="Edit with VS Code""Icon"="C:\\Users\\<YOUR_USER>\\AppData\\Local\\Programs\\Microsoft VS Code\\Code.exe,0"[HKEY_CLASSES_ROOT\*\shell\Open with VS Code\command]@="\"C:\\Users\\<YOUR_USER>\\AppData\\Local\\Programs\\Microsoft VS Code\\Code.exe\" \"%1\""; Adds context menu entry when you right click ONTO a folder:[HKEY_CLASSES_ROOT\Directory\shell\vscode]@="Open Folder as VS Code Project""Icon"="\"C:\\Users\\<YOUR_USER>\\AppData\\Local\\Programs\\Microsoft VS Code\\Code.exe\",0"[HKEY_CLASSES_ROOT\Directory\shell\vscode\command]@="\"C:\\Users\\<YOUR_USER>\\AppData\\Local\\Programs\\Microsoft VS Code\\Code.exe\" \"%1\""; Adds context menu entry when you right click INSIDE a folder:[HKEY_CLASSES_ROOT\Directory\Background\shell\vscode]@="Open Folder as VS Code Project""Icon"="\"C:\\Users\\<YOUR_USER>\\AppData\\Local\\Programs\\Microsoft VS Code\\Code.exe\",0"[HKEY_CLASSES_ROOT\Directory\Background\shell\vscode\command]@="\"C:\\Users\\<YOUR_USER>\\AppData\\Local\\Programs\\Microsoft VS Code\\Code.exe\" \"%V\""
    
    1. Make sure that the installation path to ...\\Code.exe is correct. I.e., replace &lt;YOUR_USER&gt; with your actual user.4. Double click onto the registry file to run it. Done!
    4 people found this answer helpful.
    0 comments No comments
  2. Ramesh 176.1K Reputation points Volunteer Moderator
    2024-03-19T06:43:25+00:00

    You're welcome.

    0 comments No comments
  3. Anonymous
    2024-03-19T06:40:37+00:00

    Thanks for the solution.

    0 comments No comments