Editing snippet items

Procedure

  1. In the Snippets view, right-click the name of the item that you want to modify, and select Customize.
  2. Optional: Type a new name and a new description for the item.
  3. To declare a variable, click New and type the variable name, description, and default value.
  4. To edit an existing variable, type over the existing values.
  5. To edit the Template Pattern field, type into the field, cut and paste into the field, or if you defined one or more variables click Insert Variable Placeholderand double-click the name of the variable that you want to insert. For example, if you have declare variables that are named uri and prefix, clicking Insert Variable Placeholder brings up a menu that contains those names. Double-clicking uri inserts ${uri}, as in the following example:
    <%@ taglib uri="${uri}" prefix="${prefix}" %>
    Later, when you insert the snippet into a file, ${uri} and ${prefix} are each converted to the default value declared in the Variables table. Users can replace the default values in the Insert Template:Item_name dialog at insertion time.
  6. Click OK.

Results

The modified item is added to the list of items in the appropriate drawer.
Icon that indicates the type of topic Task topic
Timestamp icon Last updated: July 17, 2017 21:58

File name: tsrcedt022.html