Insert a code snippet

You can quickly insert a code snippet that you've created or one that's provided by Microsoft Expression Web, while working in the Code view of a web page or other file.

Tip

Many features and commands you can use in the Code view of a page have keyboard shortcuts. For more information, see the section entitled Code view shortcuts in Keyboard shortcuts.

To insert a code snippet

  1. In Code view, in your web page, or other file into which you want to insert the code snippet, put your cursor where you want to insert the code snippet, and then do one of the following:

    • Press CTRL+ENTER.

    • On the Edit menu, point to IntelliSense, and then click List Code Snippets.

    • On the Code View toolbar, click the List Code Snippets button Cc295458.8783702d-6889-4dc3-b337-e732062bf2cd(en-us,Expression.10).gif.

  2. In the list of code snippets, do one of the following:

    • Type the keyword for the code snippet, and then press ENTER or TAB to insert it.

    • Select the code snippet you want to insert, and then press ENTER or TAB to insert it.

    • Double-click the code snippet you want to insert.

See also

Concepts

Create or modify a code snippet

Insert tags and comments