Replacing Snippets

After you create or add a new snippet to your project, you can insert it into any of your topics. Later, if you decide that a different snippet is a better fit for the topic, you can select a new snippet to replace it. When you replace a snippet, it only affects the instance that you selected.

How to Replace a Snippet

  1. Right-click on the snippet where it is inserted and select Select New Snippet. The Insert Snippet Link dialog opens.
  2. Navigate to the snippet that you want to insert and select it. By using the buttons in the local toolbar, you can view all snippet files in a list, view files in their folder structure, and use other options. If you want to add one of your 20 most recently used snippets to the project, you can select a snippet from the Recently Used Snippets group. If you want to add one of your pinned—or favorite—snippets to the project, you can select a snippet from the Pinned Snippets group. You also can click The browse ellipsis button opens to more options. to find and select a snippet file outside of the project.

    Option

    Description

    Shows all of the files in the project in a list below. Click the button again to switch to a folder tree view. You can click the File, Type, or Path column headers to sort the list alphabetically by that column data.

    Click to show or hide folders where files are kept.

    Shows or hides the folders that the files are stored in.

    Click to show or hide files within a folder.

    Shows or hides the files. If you click this button when the Show Folders button Click to show or hide folders where files are kept. is selected, the area splits into two. The folder is shown on the left side, and the files and subfolders within it are shown on the right.

    Click to move up one folder level.

    If the Show Files button Click to show or hide files within a folder. is the only one selected, you can click this button to move up one folder level.

    Lets you filter the kinds of files shown below. Depending on the task you are performing, this field may already be populated with the most appropriate file type(s).

    Note If you select a snippet file outside the project, that file is then copied and placed inside the project. The image file is stored in the Resources\Snippets folder of the Content Explorer.

  3. Click OK. The original snippet is replaced by the new snippet.
  4. Click Save the active file. to save your work.