notepad-plus-plus-legacy/PowerEditor/misc/npp.help/HTML/Auto Completion.html
Don Ho f5cca1add9 [BUG_FIXED] Fix getting fonts problem under Chines/Korean/Japanese environment.
[BUG_FIXED] Fix wrong File encoding auto-detection problem : binary file is detected as UTF-16 big-endian.
[UPDATE] (Author : Christian Cuvier) Update NppHelp to v5.5.


git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@539 f5eea248-9336-0410-98b8-ebc06183d4e3
2009-09-19 21:43:11 +00:00

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.&nbsp;</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-&gt;Auto-Completion-&gt;Function
Completion</span> or automatically when a certain amount of characters is
typed (see also&nbsp;<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-&gt;Auto-Completion->&gt;Word
Completion</span>, or by entering a set number of characters (again, see&nbsp;<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-&gt;Auto-Completion-&gt;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://sourceforge.net/apps/mediawiki/notepad-plus/index.php?title=Auto_Completion">NpWiki++</a>.
</body></html>