[HowTo] Add Item To Context Menu On Windows

Shortcut keys make your life easier, as does the context menu. The context menu appears when you right-click your mouse and a menu appears with a list of choices.

You can customize your context menu to open a file with your preferred program, like opening a PHP file with Notepad++ rather than with Dreamweaver or Windows Notepad.

See the screenshot below:

Context Menu Screenshot

Follow these steps to add any custom command to your context menu:

1. Open your registry with Windows + R then type regedit

2. Go to this following key in your registry:

HKEY_CLASSES_ROOT*shell
Registry Screenshot

3. Right-click on “shell” and choose to create a new key, name it “Open with Notepad++”.

4. Create a new key below that one called “command”.

5. Double-click on the (Default) value in the right-hand pane and enter the command below:

notepad++.exe %1

6. You are done.

7. Right-click any PHP file and you will see “Open with Notepad++” in your context menu.