mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 14:42:11 +02:00
Bug 403263 - Add link on Concepts/Templates page
Change-Id: Ibab1ef72640a2f9a7d737c6ca76cac52577e3745 Reviewed-on: https://git.eclipse.org/r/12104 Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com> IP-Clean: Sergey Prigogin <eclipse.sprigogin@gmail.com> Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
This commit is contained in:
parent
389e03ce9f
commit
356f66ed01
1 changed files with 50 additions and 32 deletions
76
doc/org.eclipse.cdt.doc.user/concepts/cdt_c_templates.htm
Normal file → Executable file
76
doc/org.eclipse.cdt.doc.user/concepts/cdt_c_templates.htm
Normal file → Executable file
|
@ -1,47 +1,65 @@
|
||||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<meta http-equiv="Content-Language" content="en-us">
|
<meta http-equiv="Content-Language" content="en-us">
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||||
<title>Templates</title>
|
<title>Templates</title>
|
||||||
<link rel="stylesheet" type="text/css" href="../help.css">
|
<link rel="stylesheet" type="text/css" href="../help.css">
|
||||||
|
<script type="text/javascript"
|
||||||
|
src="PLUGINS_ROOT/org.eclipse.help/livehelp.js"></script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div role="main">
|
<div role="main">
|
||||||
<h1>Templates</h1>
|
<h1>Templates</h1>
|
||||||
|
|
||||||
<p>Templates are sections of code that occur frequently enough that you would like
|
<p>
|
||||||
to be able to insert them with a few keystrokes.
|
Templates are sections of code that occur frequently enough that you
|
||||||
This function is known as <strong>Content Assist</strong>; the sections of code that are
|
would like to be able to insert them with a few keystrokes. This
|
||||||
inserted are known as <strong>templates</strong>.
|
function is known as <strong>Content Assist</strong>; the sections of
|
||||||
|
code that are inserted are known as <strong>templates</strong>.
|
||||||
</p>
|
</p>
|
||||||
<p>To input an existing Content Assist template into a file, such as one for an
|
<p>
|
||||||
<strong>if</strong> statement, type the initial character ("<span class="typewriter">i</span>" in this case), then press <strong>Ctrl+Space</strong>.
|
To insert an existing Content Assist template into a file, such as
|
||||||
The templates that begin with that character appear. Double-click on a template to insert it into a file.</p>
|
one for an <strong>if</strong> statement, type the initial character
|
||||||
|
("<span class="typewriter">i</span>" in this case), then press <strong>Ctrl+Space</strong>.
|
||||||
<p>You can edit existing Code/Content Assist templates or create new ones. From the menu bar choose
|
The templates that begin with that character appear. Double-click on
|
||||||
<strong>Window > Preferences > C/C++ > Editor > Templates</strong>.</p>
|
a template to insert it into a file.
|
||||||
|
|
||||||
<p><img src="../images/ngconcepts.gif" ALT="Related concepts" width="143" height="21">
|
|
||||||
<br><a href="cdt_c_over_cdt.htm">CDT Overview</a>
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<p><img src="../images/ngtasks.gif" ALT="Related tasks" width="143" height="21">
|
|
||||||
<br><a href="../tasks/cdt_t_add_codetemp.htm">Creating and editing templates</a>
|
|
||||||
<br><a href="../tasks/cdt_t_contentassist.htm">Using templates</a>
|
|
||||||
<br><a href="../tasks/cdt_t_imp_code_temp.htm">Importing and exporting templates</a>
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<p><img src="../images/ngref.gif" ALT="Related reference" width="143" height="21">
|
|
||||||
<br><a href="../reference/cdt_u_m_edit.htm">Edit menu</a>
|
|
||||||
<br><a href="../reference/cdt_u_c_editor_con_assist.htm">Content Assist page</a>
|
|
||||||
<br><a href="../reference/cdt_u_code_temp.htm">Templates page</a>
|
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
<img src="../images/rh03_04.gif" ALT="Red Hat Copyright Statement"><br>
|
You can edit the existing Content Assist templates or create new
|
||||||
<img src="../images/ng00_04a.gif" ALT=" IBM Copyright Statement" >
|
ones using the <img src="../images/command_link.png" alt=""> <a
|
||||||
|
class="command-link"
|
||||||
|
href='javascript:executeCommand("org.eclipse.ui.window.preferences(preferencePageId=org.eclipse.cdt.ui.preferences.TemplatePreferencePage)")'>C/C++
|
||||||
|
> Editor > Templates</a> preference pane.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
<img src="../images/ngconcepts.gif" ALT="Related concepts"
|
||||||
|
width="143" height="21"> <br> <a
|
||||||
|
href="cdt_c_over_cdt.htm">CDT Overview</a>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
<img src="../images/ngtasks.gif" ALT="Related tasks" width="143"
|
||||||
|
height="21"> <br> <a
|
||||||
|
href="../tasks/cdt_t_add_codetemp.htm">Creating and editing
|
||||||
|
templates</a> <br> <a href="../tasks/cdt_t_contentassist.htm">Using
|
||||||
|
templates</a> <br> <a href="../tasks/cdt_t_imp_code_temp.htm">Importing
|
||||||
|
and exporting templates</a>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
<img src="../images/ngref.gif" ALT="Related reference" width="143"
|
||||||
|
height="21"> <br> <a href="../reference/cdt_u_m_edit.htm">Edit
|
||||||
|
menu</a> <br> <a href="../reference/cdt_u_c_editor_con_assist.htm">Content
|
||||||
|
Assist page</a> <br> <a href="../reference/cdt_u_code_temp.htm">Templates
|
||||||
|
page</a>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
<img alt="Red Hat Copyright Statement" src="../images/rh03_04.gif"><br>
|
||||||
|
<img alt="IBM Copyright Statement" src="../images/ng00_04a.gif">
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
|
Loading…
Add table
Reference in a new issue