How to add the "ionic serve" command to Win Explorer context menu


#1

Simple hack for ionic serve command

Rather than opening up a command prompt, CD to the project folder and type ‘ionic serve’, I managed to add the command to the context menu itself. Simply save the following to a text file and save with the .REG extension. Then double-click to merge to the registry.

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\shell\Ionic]
@="Ionic Serve"

[HKEY_CLASSES_ROOT\Directory\shell\Ionic\command]
@="cmd.exe /s /k \"pushd %V & ionic serve\""

Once merged, right-clicking on your project folder should show an additional menu item called “Ionic serve”.

This is working on Win 7 and Win 10. Did not try on any other version.

Cheers! :slightly_smiling: