2003-11-28 21:50:02 +00:00
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
< html lang = "en" >
< head >
< meta http-equiv = "Content-Language" content = "en-us" >
< meta http-equiv = "Content-Type" content = "text/html; charset=UTF-8" >
< title > Using Content Assist< / title >
< link rel = "stylesheet" type = "text/css" href = "../help.css" >
2004-05-10 14:38:08 +00:00
< script language = "JavaScript" >
2004-04-26 15:41:43 +00:00
function changeSize(theImage,wd,ht) {
wdth=parseInt(theImage.style.width); hght=parseInt(theImage.style.height);
if ( !(wdth==(wd*2)) ) {wdth=wd*2; hght=ht*2;}
else {wdth=wd;hght=ht;}
theImage.style.width=wdth; theImage.style.height=hght;
}
< / script >
2003-11-28 21:50:02 +00:00
< / head >
< body >
< h1 > Using Content Assist< / h1 >
< p > Use Content Assist to insert C/C++ elements of your project or referenced project(s),
and code templates into your code. You can insert a code template into your source code rather than retyping
commonly-used snippets of code.< / p >
< p > To insert a code template or element:< / p >
< ol >
< li > In the C/C++ editor, type at least the first letter of a code template or
2004-04-26 15:41:43 +00:00
element then < b > Ctrl+Space< / b > .< br >
2003-11-28 21:50:02 +00:00
A list displays the code templates
2004-04-26 15:41:43 +00:00
< img border = "0" src = "../images/template_obj.gif" width = "16" height = "16" > followed by the elements that start with the letter combination you typed.< / li >
< img src = "../images/contentAssist_example.png" width = "299" height = "272" onClick = "changeSize(this,299,272);"
alt="Screen Capture of Content Assist Example" title="click to toggle image size">
2003-11-28 21:50:02 +00:00
< li > Do one of the following:
< ul >
< li > Continue typing. The list shortens. When there is only one item in the
list, it is automatically inserted.< / li >
< li > Double-click an item in the list to insert it into your code. < / li >
< li > Press < b > Esc< / b > to close the Content Assist Window.< / li >
< / ul >
< / li >
< / ol >
< p > To set Content Assist preferences:< / p >
< ol >
< li > Click < b > Window > Preferences< / b > .< / li >
2004-05-05 12:45:42 +00:00
< li > Expand < b > C/C++< / b > , and click < b > C/C++ Editor< / b > .< / li >
2004-04-26 15:41:43 +00:00
< li > Click the < b > Content Assist< / b > tab.< br >
< img src = "../images/contentAssist_preferences.png" width = "334" height = "263" onClick = "changeSize(this,334,263);"
alt="Screen Capture of Content Assist Preferences" title="click to toggle image size">< / li >
2003-11-28 21:50:02 +00:00
< li > Do the following:
< ul >
2004-04-26 15:41:43 +00:00
< li > To change the scope from which Content Assist retrieves its proposals, select
either < b > Search current file and included files< / b > or < b > Search current project< / b >
by selecting the appropriate the radio button.< / li >
< li > To insert an element when you open Content Assist and it is the only
item in the list, select the < b > Insert single proposals automatically< / b > check box.< / li >
< li > To automatically insert a proposal, if it is the only one found when Content Assist is invoked, select the < b > Enable auto activation< / b > checkbox.< / li >
< li > To display proposals in alphabetical order, rather than by relevance, select the < b > Present proposals in alphabetical order< / b > checkbox. < / li >
2004-05-05 12:45:42 +00:00
< li > To change the timeout delay for Content Assist enter the value for < b > Content Assist parsing timeout< / b > in the text box area.< / li >
2004-04-26 15:41:43 +00:00
< li > Enable Auto activation of content assist for ".", "->" or "::" triggers by selecting the appropriate checkboxes.
< li > To change the delay before invoking Content Assist using the triggers (shown above), enter the new delay in the < b > Auto activation delay< / b > text box area.
< li > To change the background color of the Content Assist dialog box, click the color palette button.< / li >
< li > To change the foreground color of the Content Assist dialog box, click the color palette button.< / li >
2003-11-28 21:50:02 +00:00
< / ul >
< / li >
< li > Click < b > OK< / b > .< / li >
< / ol >
< p > < img border = "0" src = "../images/ngconcepts.gif" ALT = "Related concepts" width = "143" height = "21" >
< br >
< a href = "../concepts/cdt_c_content_assist.htm" > Content Assist< / a > < / p >
< p > < img border = "0" src = "../images/ngtasks.gif" ALT = "Related tasks" width = "143" height = "21" >
< br >
< a href = "cdt_t_add_codetemp.htm" > Creating and editing code templates< / a > < br >
< a href = "cdt_t_imp_code_temp.htm" > Importing and exporting code templates< / a > < / p >
< p > < img border = "0" src = "../images/ngref.gif" ALT = "Related reference" width = "143" height = "21" >
< br >
< a href = "../reference/cdt_u_c_editor_con_assist.htm" > Content Assist page, Preferences window< / a > < br >
< a href = "../reference/cdt_u_code_temp.htm" > Code Templates page< / a > < / p >
< p >
2003-12-19 20:47:29 +00:00
< img src = "../images/ng03_04.gif" ALT = "IBM Copyright Statement" BORDER = 0 width = "324" height = "14" >
2003-11-28 21:50:02 +00:00
< / body >
< / html >