blob: 9fea938937d6bb19428d3f8fecda9d56df8edc44 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<!-- /*******************************************************************************
* Copyright (c) 2000, 2005 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/ -->
<link rel="stylesheet" type="text/css" href="../../org.eclipse.wst.doc.user/common.css" />
<title>Snippets view</title>
</head>
<body id="csrcedt001"><a name="csrcedt001"><!-- --></a>
<h1 class="topictitle1">Snippets view</h1>
<div><p>This documentation gives an overview of the Snippets view.</p><p>The Snippets view lets you catalog and organize reusable programming objects,
such as HTML tagging, JavaScript™, and JSP code, along with files
and custom JSP tags. The view can be extended based on additional objects
that you define and include.</p>
<p>To view or collapse the objects in a specific drawer, click the drawer
name.</p>
<div class="p">The Snippets view has the following features: <ul><li>Drag-and-drop to various source editing pages: You can drag items from
the view into the active editor and the text will be dropped into the document
at the cursor location </li>
<li>Double-click support: You can double-click on an item and have it inserted
at the current cursor position in the active editor </li>
<li>User-defined drawers and items: You can define, edit, and remove items
from view drawers as desired.</li>
<li>Plug-in-defined drawers and items: Plug-in developers can contribute a
default list of items to their own drawers.</li>
<li>Variables in insertions: By default, items will be edited using a dialog
and, when inserted, you will be prompted for values for each of the variables.</li>
<li>Customization: You can select which drawers and items are shown in the
Snippets view.</li>
<li>Custom insertion: Plug-in developers can customize the behavior of items
so that when they are dropped during a drag-and-drop action, both the text
that is inserted and the insertion location are strictly defined.</li>
</ul>
</div>
</div>
<div><p><b class="relconceptshd">Related concepts</b><br />
<a href="csrcedt004.html" title="Structured text editor is any of several text editors that you can use to edit various markup languages such as HTML, JavaScript, or XML.">Structured text editors for markup
languages</a><br />
</p>
<p><b class="reltaskshd">Related tasks</b><br />
<a href="tsrcedt026.html" title="The Snippets view lets you catalog and organize reusable programming objects, such as HTML tagging, JavaScript, and JSP code, along with files and custom JSP tags. The view can be extended based on additional objects that you define and include.">Editing with snippets - overview</a><br />
<a href="tsrcedt014.html" title="This documentation explains how to customize the Snippets view by adding a new drawer.">Adding snippets drawers</a><br />
<a href="tsrcedt015.html" title="This documentation describes how to add a new item to a drawer in the Snippets view.">Adding items to snippets drawers</a><br />
<a href="tsrcedt022.html" title="This documentation describes how to modify the template code that is in an item in a drawer in the Snippets view.">Editing snippet items</a><br />
<a href="tsrcedt016.html" title="This documentation describes how to delete or hide drawers and items in the Snippets view.">Deleting or hiding snippet items or
drawers</a><br />
<!-- <a href="tsrcedt000.html" title="You can edit text coded in markup languages with a structured text editor. This is a generic term for several editors that you can use to edit any of several markup languages such as HTML or XML.">Editing text coded in markup languages - overview</a>--><br />
</p>
</div>
</body>
</html>