36 lines
2.6 KiB
HTML
36 lines
2.6 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
|
<html><head><meta content="text/html; charset=UTF-8" http-equiv="content-type"><title>Auto Completion</title>
|
|
<link rel="stylesheet" href="styles.css" type="text/css">
|
|
</head>
|
|
<body><h1>Auto completion</h1>
|
|
|
|
<p>Notepad++
|
|
has autocompletion capabilities, allowing it to finish a word that
|
|
you are typing by giving a list of possible options, or immediately
|
|
inserting it when only one possibility is left (powered by the
|
|
Scintilla component).</p>
|
|
<p>There
|
|
are two types of auto completion. </p>
|
|
<ul><li>The first one uses a list of well
|
|
known keywords and provides a hint based on that and goes by the name
|
|
<span style="font-weight: bold;">Function Completion</span>. It is triggered by selecting <span class="menu_item">Edit->Auto-Completion->Function
|
|
Completion</span> or automatically when a certain amount of characters is
|
|
typed (see also <a href="Preferences.html#Backup_Auto-Completion">Preferences</font></a>).<br><img src="images\screenshots\autocomp.png">
|
|
</li><li>The second one retrieves
|
|
all the words from the current file and provides hinting on that,
|
|
named <span style="font-weight: bold;">Word Completion</span>. This is triggered by selecting <span class="menu_item">Edit->Auto-Completion->>Word
|
|
Completion</span>, or by entering a set number of characters (again, see <a href="Preferences.html#Backup_Auto-Completion">Preferences</a>). Word completion is the only type that can
|
|
automatically finish a word without displaying a list of options
|
|
first.
|
|
</li></ul>Somewhat
|
|
related but not exactly the same is the display of <span style="font-weight: bold;">function parameter
|
|
hints, or calltips</span>. This is a small tooltip that will show the
|
|
required parameters (and possibly some details of them) for a
|
|
function a call to which is being edited. This is specifically
|
|
targeted for programming purposes and serves no real value for other
|
|
tasks. The calltip will highlight the current parameter being edited
|
|
for a quick emphasis on what is actually needed. It is purely
|
|
passive and will not modify the text in any way. To trigger a calltip (if one can be found), select <span class="menu_item">Edit->Auto-Completion->Function parameters hint</span>.<p>Autocompletion
|
|
is language based (see <a href="Languages.html">Languages</a>) and has different API files for
|
|
each language. For more details on these API files and how to make your own, refer to <a target="_blank" href="http://apps.sourceforge.net/mediawiki/notepad-plus/index.php?title=Auto_Completion">NpWiki++</a>.
|
|
</body></html> |