Open folder in VS Code from Windows Explorer

TLDR Save this contents to a new .reg file: Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\Directory\shell\VSCode] @=”Open with Code” “Icon”=”\”%LocalAppData%\\Programs\\Microsoft VS Code\\Code.exe\”” [HKEY_CLASSES_ROOT\Directory\shell\VSCode\command] @=hex(2):22,00,25,00,4c,00,6f,00,63,00,61,00,6c,00,41,00,70,00,70,00,44,00,61,\ 00,74,00,61,00,25,00,5c,00,50,00,72,00,6f,00,67,00,72,00,61,00,6d,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 Run the file and that’s it. Detailed The answer from @dqureshiumar is correct, if you already checked that option during VS Code installation. But maybe you haven’t checked … Read more

How can I run text selected in the active editor in VS Code’s integrated terminal?

There is no default keybindings for command “Run Selected Text in Active Terminal”, but you can create one. Press Ctrl+K, Ctrl+S to open File → Preferences → Keyboard Shortcuts. Search for workbench.action.terminal.runSelectedText in keybindings. Press the icon on the left to open a windnow with this message “Press desired key combination…” and make your choice. … Read more