{"id":74522,"date":"2024-03-20T11:05:22","date_gmt":"2024-03-20T05:35:22","guid":{"rendered":"http:\/\/198.58.113.91\/blog\/?p=74522"},"modified":"2026-03-09T12:18:48","modified_gmt":"2026-03-09T06:48:48","slug":"restore-open-with-vs-code-context-menu","status":"publish","type":"post","link":"https:\/\/www.winhelponline.com\/blog\/restore-open-with-vs-code-context-menu\/","title":{"rendered":"How to Restore Missing &#8220;Open with VS Code&#8221; Context Menu Option"},"content":{"rendered":"<p>Visual Studio Code (VS Code) adds the &#8220;Open with Code&#8221; option in your context menu. However, when you install the app via the Microsoft Store, the context menu option may be missing.<\/p>\n<p>You may wonder how to add the &#8220;Open with Code&#8221; option to the right-click menu.<!--more--><\/p>\n<h2>Resolution<\/h2>\n<p>To restore the missing &#8220;Open with Code&#8221; context menu, follow one of the methods below:<\/p>\n<h3>Method 1: Re-run the VS Code Setup program<\/h3>\n<p>First, uninstall the existing installation of VS Code. You can uninstall it via Apps &amp; Features in Settings.<\/p>\n<p>Then, download the non-store version of VS Code from the following link:<\/p>\n<pre>https:\/\/code.visualstudio.com\/download#\n\nhttps:\/\/code.visualstudio.com\/sha\/download?build=stable&amp;os=win32-x64 [Direct download link]<\/pre>\n<p>After downloading the VS Code setup program, run it.<\/p>\n<p>Enable the two options: Add<strong>\u00a0&#8220;Open with code&#8221; action to Windows Explorer file context menu<\/strong> and <strong>Add &#8220;Open with code&#8221; action to Windows Explorer directory context menu<\/strong> in the setup wizard.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-74523\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2024\/03\/vscode-context-menu-setup.png\" alt=\"open with code - visual studio code\" width=\"598\" height=\"464\" \/><\/p>\n<p>Click Next, and click Install to complete the process.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-74524\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2024\/03\/visual-studio-code-context-menu-open-with-code.jpg\" alt=\"open with code - visual studio code\" width=\"223\" height=\"361\" \/><\/p>\n<p>Right-clicking a directory or file should now bring up the &#8220;Open with Code&#8221; context menu.<\/p>\n<hr \/>\n<h3>Method 2: Add &#8220;Open with Code&#8221; Using a Registry Edit<\/h3>\n<p>This method is preferred if you don&#8217;t want to reinstall Visual Studio Code.<\/p>\n<p>To add &#8220;Open with Code&#8221; to the right-click menu for files\/directory\/directory background\/drive, download <a href=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2024\/03\/add-vscode-context-menu.zip\">add-vscode-context-menu.reg<\/a>\u00a0(zipped). Unzip the file and run the enclosed REG file.<\/p>\n<h4>INFO: Registry file contents<\/h4>\n<p>The above registry fix has the following contents:<\/p>\n<pre>\nWindows Registry Editor Version 5.00\n\n; Add \"Open with Code\" to the context menu for files\/directory\/directory background\/drive.\n\n[HKEY_CLASSES_ROOT\\*\\shell\\VSCode]\n\"Icon\"=\"C:\\\\Program Files\\\\Microsoft VS Code\\\\Code.exe\"\n@=\"Open w&ith Code\"\n\n[HKEY_CLASSES_ROOT\\*\\shell\\VSCode\\command]\n@=\"\\\"C:\\\\Program Files\\\\Microsoft VS Code\\\\Code.exe\\\" \\\"%1\\\"\"\n\n[HKEY_CLASSES_ROOT\\Directory\\shell\\VSCode]\n@=\"Open w&ith Code\"\n\"Icon\"=\"C:\\\\Program Files\\\\Microsoft VS Code\\\\Code.exe\"\n\n[HKEY_CLASSES_ROOT\\Directory\\shell\\VSCode\\command]\n@=\"\\\"C:\\\\Program Files\\\\Microsoft VS Code\\\\Code.exe\\\" \\\"%V\\\"\"\n\n[HKEY_CLASSES_ROOT\\Directory\\Background\\shell\\VSCode]\n@=\"Open w&ith Code\"\n\"Icon\"=\"C:\\\\Program Files\\\\Microsoft VS Code\\\\Code.exe\"\n\n[HKEY_CLASSES_ROOT\\Directory\\Background\\shell\\VSCode\\command]\n@=\"\\\"C:\\\\Program Files\\\\Microsoft VS Code\\\\Code.exe\\\" \\\"%V\\\"\"\n\n[HKEY_CLASSES_ROOT\\Drive\\shell\\VSCode]\n@=\"Open w&ith Code\"\n\"Icon\"=\"C:\\\\Program Files\\\\Microsoft VS Code\\\\Code.exe\"\n\n[HKEY_CLASSES_ROOT\\Drive\\shell\\VSCode\\command]\n@=\"\\\"C:\\\\Program Files\\\\Microsoft VS Code\\\\Code.exe\\\" \\\"%V\\\"\"\n<\/pre>\n<p>As you can see, the VS Code path in the REG file is hard-coded for &#8220;C:\\Program Files\\Microsoft VS Code\\Code.exe&#8221;, which is the default installation path.<\/p>\n<p>I hope you found the above methods helpful.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Visual Studio Code (VS Code) adds the &#8220;Open with Code&#8221; option in your context menu. However, when you install the app via the Microsoft Store, the context menu option may be missing. You may wonder how to add the &#8220;Open with Code&#8221; option to the right-click menu.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[7],"tags":[114],"class_list":["post-74522","post","type-post","status-publish","format-standard","hentry","category-windows","tag-context-menu"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":23844,"url":"https:\/\/www.winhelponline.com\/blog\/firefox-restore-missing-view-image-menu-option\/","url_meta":{"origin":74522,"position":0},"title":"[Firefox] Restore Missing &#8220;View Image&#8221; Menu Option","author":"Ramesh","date":"April 27, 2021","format":false,"excerpt":"In Firefox v88, some context menu options have been removed. One of the most useful options that is removed is the \"View Image\" context menu. It's now replaced by \"Open Image in New Tab,\" which opens the image in a new tab (or a new window if the Shift key\u2026","rel":"","context":"In &quot;General&quot;","block_context":{"text":"General","link":"https:\/\/www.winhelponline.com\/blog\/category\/general\/"},"img":{"alt_text":"firefox view image menu add-on","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2021\/04\/firefox-view-image-add-on-0.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":446,"url":"https:\/\/www.winhelponline.com\/blog\/add-mail-recipient-as-path-option-send-to-menu-to-email-file-paths\/","url_meta":{"origin":74522,"position":1},"title":"How to Email File Paths via the Send To menu","author":"Ramesh","date":"August 13, 2008","format":false,"excerpt":"Let's assume you're working in the training department of a firm and need to send training materials to recruits regularly. The usual way is to right-click on the file, click Send To, and click Mail Recipient. This attaches the file to the compose window in your mail client. How about\u2026","rel":"","context":"In &quot;Windows&quot;","block_context":{"text":"Windows","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/"},"img":{"alt_text":"email file path context menu","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2008\/08\/outlook-message-email-file-path.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2008\/08\/outlook-message-email-file-path.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2008\/08\/outlook-message-email-file-path.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2008\/08\/outlook-message-email-file-path.png?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":27716,"url":"https:\/\/www.winhelponline.com\/blog\/disable-undo-redo-feature-in-windows\/","url_meta":{"origin":74522,"position":2},"title":"How to Disable the Undo\/Redo Feature for File Operations in Windows","author":"Ramesh","date":"August 29, 2022","format":false,"excerpt":"When you perform a file operation (e.g., delete, rename, copy, or move a file or folder) in Windows, you'll see the corresponding \"Undo...\" option in the desktop right-click menu. One of the options, \"Undo Copy\", \"Undo Move\", \"Undo Rename\", or \"Undo Delete\" is shown in the context menu. Similarly, when\u2026","rel":"","context":"In &quot;Windows&quot;","block_context":{"text":"Windows","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/"},"img":{"alt_text":"disable undo and redo in explorer shell","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2022\/08\/undo-redo-explorer.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":10158,"url":"https:\/\/www.winhelponline.com\/blog\/run-program-as-system-localsystem-account-windows\/","url_meta":{"origin":74522,"position":3},"title":"How to Run a Program as SYSTEM (LocalSystem) Account in Windows","author":"Ramesh","date":"July 3, 2019","format":false,"excerpt":"Many Windows system files, registry keys, and services are owned by the SYSTEM (a.k.a LocalSystem) account, which has a high privilege level. If you need to modify a registry key owned by the SYSTEM account, there are at least two options. The first option that comes to your mind is\u2026","rel":"","context":"In &quot;Utilities&quot;","block_context":{"text":"Utilities","link":"https:\/\/www.winhelponline.com\/blog\/category\/utilities\/"},"img":{"alt_text":"runx - run as system","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2019\/07\/runx-run-as-system.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":4939,"url":"https:\/\/www.winhelponline.com\/blog\/extract-missing-zip-files-right-click-menu-fix\/","url_meta":{"origin":74522,"position":4},"title":"Restore Missing &#8220;Extract All&#8221; Option to Zip Right-Click Menu","author":"Ramesh","date":"December 24, 2016","format":false,"excerpt":"When you right-click on a .zip file (Compressed Folder) and click \"Extract All\", it extracts the contents of the .zip file to a folder, and automatically opens the folder. Extract All option may be missing because of incorrect .zip file association setting, especially after installing and uninstalling a 3rd party\u2026","rel":"","context":"In &quot;Windows&quot;","block_context":{"text":"Windows","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/"},"img":{"alt_text":"restore extract all to the right-click menu for .zip files","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/12\/w10-zip-selection-asso.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/12\/w10-zip-selection-asso.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/12\/w10-zip-selection-asso.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":3815,"url":"https:\/\/www.winhelponline.com\/blog\/run-program-as-trustedinstaller-locked-registry-keys-files\/","url_meta":{"origin":74522,"position":5},"title":"How to Run Programs as TrustedInstaller to Write to Certain Registry Keys or Files","author":"Ramesh","date":"August 15, 2016","format":false,"excerpt":"Even when running programs elevated (Administrator), certain registry keys and files are not writable. This may be because the files are owned by TrustedInstaller, and no write access granted for Administrators. In that case, running the program as TrustedInstaller can help fix a locked registry key or clear a file\u2026","rel":"","context":"In &quot;Utilities&quot;","block_context":{"text":"Utilities","link":"https:\/\/www.winhelponline.com\/blog\/category\/utilities\/"},"img":{"alt_text":"advancedrun - trustedinstaller","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/08\/advancedrun-screen.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/08\/advancedrun-screen.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/08\/advancedrun-screen.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/08\/advancedrun-screen.png?resize=700%2C400&ssl=1 2x"},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts\/74522","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/comments?post=74522"}],"version-history":[{"count":0,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts\/74522\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/media?parent=74522"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/categories?post=74522"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/tags?post=74522"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}