Tuesday, 12 August 2025

VS CODE OPTION NOT VISIBLE ON RIGHT CLICK !!!!!

You must come here due to no option you can see "open with code" on right click after the intallation of software or accidentally vanished after some authorization given to anyone. I observed that after any authorization like google drive authorization or github authorization, you may face problems, i faced i am telling so.So, i bring all the steps for you curated from net and chatgpt how should you proceed. after doing this you may face problems of black screen with only arrow, that solution also brought for you.

Step 1: Restart your computer

  • still not visible this option follow step 2

Step 2: Enable "Open with Code" from VS Code setting

  • Open VS Code.
  • Press Ctrl + Shift + P to open the Command Palette.
  • Type Shell Command: Install 'code' command in PATH and select it. (If this option not visible you are in windows follow step 4)
  • Restart your computer.
  • If still not visible follow step 3

Step 3: Add "Open with Code" to right-click manually

  1. Open VS Code.
  2. Press Ctrl + Shift + P to open the Command Palette.
  3. Type Shell Command: Install 'code' command in PATH and select it.
  4. Then run this command from your terminal:
# For folders reg add "HKCR\Directory\Background\shell\Open with VS Code" /ve /d "Open with VS Code" /f reg add "HKCR\Directory\Background\shell\Open with VS Code\command" /ve /d "\"C:\Program Files\Microsoft VS Code\Code.exe\" \"%V\"" /f # For files reg add "HKCR\*\shell\Open with VS Code" /ve /d "Open with VS Code" /f reg add "HKCR\*\shell\Open with VS Code\command" /ve /d "\"C:\Program Files\Microsoft VS Code\Code.exe\" \"%1\"" /f

Step 4: Check Settings in VS Code itself (Windows)

  • In VS Code, go to File > Preferences > Settings.
  • Search for context menu or Explorer: Enable Right Click and make sure it’s enabled (usually it is by default).
  • still not visible follow step 5

Step 5: Reinstall the software

  • Go to settings
  • Go to apps (visible in left sidebar)
  • Go to installed apps
  • Search visual studio code
  • Click on 3 dots
  • Click uninstall
  • Download latest from https://code.visualstudio.com/
  • During installation, check all boxes in Select additional tasks box:
    • Add "Open with Code" action to Windows Explorer file context menu
    • Add "Open with Code" action to Windows Explorer directory context menu
  • Complete installation.
  • Restart your computer.
  • After this, you should see Open with Code when you right-click files and folders.
  • If still not fixed follow step 6

Step 6: Add registry keys manually

  • Open Notepad
  • Copy-paste the below code after generation
  • Way to find the directory
    • click windows key+R
    • paste %LocalAppData%\Programs\Microsoft VS Code
    • select title bar
    • copy it
    • paste the directory in the box "Enter VS code directory"
  • Enter your Visual Studio Code installation directory below (Example: C:\Users\SHWETA\AppData\Local\Programs\Microsoft VS Code) don't put "", if present please remove it.
  • Click File>Save As
  • Name it add-vscode-context-menu.reg and choose All files as file type.
  • Save it in desktop or anywhere where you easily find it
  • Double-click it, confirm changes
  • You can see this type of pop up
  • Screenshot showing how to restore the 'Open with Code' option in Windows right-click menu for Visual Studio Code using installer settings and registry edits
  • Restart PC.

Note: Black Screen with arrow

  • Most probably it happens with you when you restart your computer after step 6, it is due to reset of graphic card.
  • Hence, i add this step in advance, so that you don't panic just press Windows key + Ctrl +Shift +B should be pressed simultaneously.
  • Then your computer take some time to load, and now you can visible that option on right click.

#glitch #coding

#SIMILAR BLOGS
Dynamic Buttons

No comments:

Post a Comment

thank you for your feedback