Shahoud Al-Rai
Shahoud Al-Rai

Reputation: 167

Open folder as android studio project

How to add "Open folder as Android Studio project" to folders (in file explorer in windows) quick menu (right click).

screenshot with that option for IntelliJ Idea

Upvotes: 9

Views: 6418

Answers (4)

mohammed thaher
mohammed thaher

Reputation: 1

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

Upvotes: 0

Sierra
Sierra

Reputation: 59

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

Here's the gist

Upvotes: 3

Haseeb Sajjad
Haseeb Sajjad

Reputation: 244

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.

Upvotes: 15

Related Questions