[HowTo] Add Item To Context Menu On Windows

Shortcut keys is to make your life easier. As well as context menu. Context menu appear when you right click your mouse then a menu appear wit a list of choices.

You can custom your context menu to open a file with your preferred program, like open a php file with notepad++ rather than with Dreamweaver or Windows Notepad.

See the screenshot below:

Context Menu Screenshot

Follow this 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.

Give me your feedback

This site uses Akismet to reduce spam. Learn how your comment data is processed.