Vscode: Open with VS Code from right click in Windows Explorer

Created on 16 Sep 2016  ·  14Comments  ·  Source: microsoft/vscode

Feature request

Description:

Add possibility to open folder/file/group of selected files from windows explorer using right click menu with "Open with VS Code".
It's perfectly works with Atom, and Notepad++

Why this feature needed:

  • Very useful
  • Speed of opening project is increased

OS:

  • Windows
  • Mac OS (If it can be added to mac version - it's will be good to)

Most helpful comment

All 14 comments

You talk about it? It's works fine in in a stable branch.

image

Yes, make sure to install VS Code with the installer to get it 👍

If I forgot to check that during install, is there any way to get it now rather then reinstalling?

@Noitidart yes, @aasf86 gave a link for that above.

Thanks @Deilan very much I was still struggling with this, I will check out his link.

When you install with an admin account that isn't your main account.
the "Open with code" action are applied on the account which install vscode.

image

My main account is not the admin account that installed vscode

Can you add a menu entry in vscode for setting the following actions for the current user that is running vscode and is not the installer account.

  • "Open with code" action to Windows Explorer file context menu
  • "Open with code" action to Windows Explorer directory context menu
  • Add code to PATH

Visual Studio Code portable (zip) should also provide this option in settings or somewhere, so user can do this post downloading.

But no, really, is there a way to enable these options WITHOUT reinstalling?

If not, it seems like there should be a way to go back through setup to "repair" options as with Visual Studio.

If I really need to re-install to get this feature : will uninstalling remove my user settings and all my installed extensions? Is there a way to keep these?

You can use the extension Settings Sync to restore htem.

On Tue, Jul 25, 2017 at 11:22 PM, John Korsnes notifications@github.com
wrote:

If I really need to re-install to get this feature : will uninstalling
remove my user settings and all my installed extensions? Is there a way to
keep these?


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/Microsoft/vscode/issues/12147#issuecomment-317959687,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AGE8iRvQXUJ_tP6QuGOzLy8BkrvpshhRks5sRts0gaJpZM4J-5-_
.

Yes there should be some way to enable this in the application. For example with Atom there is a checkbox in the settings page that toggles the right click menu option on and off. Maybe VS Code could do something similar.

@Noitidart thanks!

VSCode installer fails to add context menu on standard user accounts

Add this to a text file and rename it to .reg, then double click on it and enjoy open with VSCode.
(Note: this will only work on default install location, you can convert the hex to string and edit paths if you wish to fix this)

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Classes\*\shell\VSCode]
@=hex(2):4f,00,70,00,65,00,6e,00,20,00,77,00,69,00,74,00,68,00,20,00,43,00,26,\
  00,6f,00,64,00,65,00,00,00
"Icon"=hex(2):43,00,3a,00,5c,00,50,00,72,00,6f,00,67,00,72,00,61,00,6d,00,20,\
  00,46,00,69,00,6c,00,65,00,73,00,5c,00,4d,00,69,00,63,00,72,00,6f,00,73,00,\
  6f,00,66,00,74,00,20,00,56,00,53,00,20,00,43,00,6f,00,64,00,65,00,5c,00,43,\
  00,6f,00,64,00,65,00,2e,00,65,00,78,00,65,00,00,00

[HKEY_CURRENT_USER\Software\Classes\*\shell\VSCode\command]
@=hex(2):22,00,43,00,3a,00,5c,00,50,00,72,00,6f,00,67,00,72,00,61,00,6d,00,20,\
  00,46,00,69,00,6c,00,65,00,73,00,5c,00,4d,00,69,00,63,00,72,00,6f,00,73,00,\
  6f,00,66,00,74,00,20,00,56,00,53,00,20,00,43,00,6f,00,64,00,65,00,5c,00,43,\
  00,6f,00,64,00,65,00,2e,00,65,00,78,00,65,00,22,00,20,00,22,00,25,00,31,00,\
  22,00,00,00

[HKEY_CURRENT_USER\Software\Classes\Directory\Background\shell\VSCode]
@=hex(2):4f,00,70,00,65,00,6e,00,20,00,77,00,69,00,74,00,68,00,20,00,43,00,26,\
  00,6f,00,64,00,65,00,00,00
"Icon"=hex(2):43,00,3a,00,5c,00,50,00,72,00,6f,00,67,00,72,00,61,00,6d,00,20,\
  00,46,00,69,00,6c,00,65,00,73,00,5c,00,4d,00,69,00,63,00,72,00,6f,00,73,00,\
  6f,00,66,00,74,00,20,00,56,00,53,00,20,00,43,00,6f,00,64,00,65,00,5c,00,43,\
  00,6f,00,64,00,65,00,2e,00,65,00,78,00,65,00,00,00

[HKEY_CURRENT_USER\Software\Classes\Directory\Background\shell\VSCode\command]
@=hex(2):22,00,43,00,3a,00,5c,00,50,00,72,00,6f,00,67,00,72,00,61,00,6d,00,20,\
  00,46,00,69,00,6c,00,65,00,73,00,5c,00,4d,00,69,00,63,00,72,00,6f,00,73,00,\
  6f,00,66,00,74,00,20,00,56,00,53,00,20,00,43,00,6f,00,64,00,65,00,5c,00,43,\
  00,6f,00,64,00,65,00,2e,00,65,00,78,00,65,00,22,00,20,00,22,00,25,00,56,00,\
  22,00,00,00

[HKEY_CURRENT_USER\Software\Classes\Directory\shell\VSCode]
@=hex(2):4f,00,70,00,65,00,6e,00,20,00,77,00,69,00,74,00,68,00,20,00,43,00,26,\
  00,6f,00,64,00,65,00,00,00
"Icon"=hex(2):43,00,3a,00,5c,00,50,00,72,00,6f,00,67,00,72,00,61,00,6d,00,20,\
  00,46,00,69,00,6c,00,65,00,73,00,5c,00,4d,00,69,00,63,00,72,00,6f,00,73,00,\
  6f,00,66,00,74,00,20,00,56,00,53,00,20,00,43,00,6f,00,64,00,65,00,5c,00,43,\
  00,6f,00,64,00,65,00,2e,00,65,00,78,00,65,00,00,00

[HKEY_CURRENT_USER\Software\Classes\Directory\shell\VSCode\command]
@=hex(2):22,00,43,00,3a,00,5c,00,50,00,72,00,6f,00,67,00,72,00,61,00,6d,00,20,\
  00,46,00,69,00,6c,00,65,00,73,00,5c,00,4d,00,69,00,63,00,72,00,6f,00,73,00,\
  6f,00,66,00,74,00,20,00,56,00,53,00,20,00,43,00,6f,00,64,00,65,00,5c,00,43,\
  00,6f,00,64,00,65,00,2e,00,65,00,78,00,65,00,22,00,20,00,22,00,25,00,56,00,\
  22,00,00,00

Was this page helpful?
0 / 5 - 0 ratings

Related issues

DovydasNavickas picture DovydasNavickas  ·  3Comments

sirius1024 picture sirius1024  ·  3Comments

omidgolparvar picture omidgolparvar  ·  3Comments

villiv picture villiv  ·  3Comments

trstringer picture trstringer  ·  3Comments