Customizing Dreamweaver > About customizing Dreamweaver menus > Modifying the Commands menu

 

Modifying the Commands menu

You can add certain kinds of commands to the Commands menu, and change their names, without editing the menus.xml file. For more information about menus.xml, see About customizing Dreamweaver menus.

Note: The term command has two meanings in Dreamweaver. Strictly speaking, a command is a particular kind of extension. In some contexts, however, command is used interchangeably with menu item to mean any item that appears in a Dreamweaver menu, no matter what it does or how it's implemented.

To create new commands that are automatically placed in the Commands menu, use the History panel (see Creating new commands from history steps). You can also use the Extension Manager to install new extensions, including commands; see Adding extensions to Dreamweaver.

To reorder the items in the Commands menu, or to move items between menus, you must edit the menus.xml file. See Rearranging menus and menu items.

To rename a command you've created:

1 Choose Commands > Edit Command List.
A dialog box appears, listing all of the commands whose names you can change. (Commands that are in the default Commands menu don't appear on this list and can't be edited using this approach.)
2 Select a command to rename.
3 Enter a new name for it.
4 Click Close.
The command is renamed in the Commands menu.

To delete a command you've created:

1 Choose Commands > Edit Command List.
A dialog box appears listing all of the commands you can delete. (Commands that are in the default Commands menu don't appear on this list and can't be deleted using this approach.)
2 Select a command to delete.
3 Click Delete, then confirm that you want to delete the command.
The command is deleted. Note that the file containing the code for the command is also deleted; deleting a command does not simply remove the menu item from the menu. Be certain that you really want to delete the command before you use this approach. If you want to remove it from the Commands menu without deleting the file, you can find the file in Configuration/Commands and move it to another folder.
4 Click Close.