How to add "Open folder as Android Studio project" to folders (in file explorer in windows) quick menu (right click).
Open windows registry by pressing Window + r type regedit and enter Run the registry editor Go to HKEY_CLASSES_ROOT\Directory\shell Right click on shell create a new key and name it as you want to see the entry in context menu then right click on the created file and create a new key and name it as command in lower case Click command and on right side pane you will see a key named as default Double click the default entry and enter the path of application exe file as the value. You need enter a spacebar then %1 at the end of application path that you entered as a value of default value. It worked for me.
Perhaps Haseeb Sajjad's answer didn't work for everyone. Try this in Sep 2022. Under Shell create a new key called Android Studio. The '(default)' key that was created can be named anything you want to see in the options when you right click a folder
Just save this as a .cmd file and run. Be sure to change the path to your android studio installation path.
@echo off
:: change the path below to match your installed version
SET AndroidStudioPath=C:\Program Files\Android\Android Studio\bin\studio64.exe
echo Adding file entries
@reg add "HKEY_CLASSES_ROOT\*\shell\AndroidStudio" /t REG_SZ /v "" /d "Open with AndroidStudio" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\AndroidStudio" /t REG_EXPAND_SZ /v "Icon" /d "%AndroidStudioPath%,0" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\AndroidStudio\command" /t REG_SZ /v "" /d "%AndroidStudioPath% \"%%1\"" /f
echo Adding within a folder entries
@reg add "HKEY_CLASSES_ROOT\Directory\Background\shell\AndroidStudio" /t REG_SZ /v "" /d "Open with AndroidStudio" /f
@reg add "HKEY_CLASSES_ROOT\Directory\Background\shell\AndroidStudio" /t REG_EXPAND_SZ /v "Icon" /d "%AndroidStudioPath%,0" /f
@reg add "HKEY_CLASSES_ROOT\Directory\Background\shell\AndroidStudio\command" /t REG_SZ /v "" /d "%AndroidStudioPath% \"%%V\"" /f
echo Adding folder entries
@reg add "HKEY_CLASSES_ROOT\Directory\shell\AndroidStudio" /t REG_SZ /v "" /d "Open with AndroidStudio" /f
@reg add "HKEY_CLASSES_ROOT\Directory\shell\AndroidStudio" /t REG_EXPAND_SZ /v "Icon" /d "%AndroidStudioPath%,0" /f
@reg add "HKEY_CLASSES_ROOT\Directory\shell\AndroidStudio\command" /t REG_SZ /v "" /d "%AndroidStudioPath% \"%%1\"" /f
pause
Answered By App is working as expected and also you will know how to do this manually to open registry folder type follow this steps
- click (windows + r)
- type (regedit) and click Ok
- scroll down to this location
HKEY_CLASSES_ROOT\Directory\shell
- and follow App answer
© 2022 - 2025 — McMap. All rights reserved.