IntelliSense, C#/J#, Text Editor, Options Dialog Box
Use the IntelliSense property page to modify settings that affect the behavior of IntelliSense for Visual C# and Visual J#. You can access the IntelliSense property page by clicking Options on the Tools menu, then clicking C# or Visual J# in the Text Editor folder, and then clicking IntelliSense.
The dialog boxes and menu commands you see might differ from those described in Help depending on your active settings or edition. To change your settings, choose Import and Export Settings on the Tools menu. For more information, see.
The IntelliSense property page contains the following properties:
- Show completion list after a character is typed
When this option is selected, IntelliSense automatically displays the completion list when you begin typing. When this option is not selected, IntelliSense completion is still available from the IntelliSense menu or by pressing CTRL+SPACE.
- Place keywords in completion lists
When this option is selected, IntelliSense adds C# or J# keywords (for example,) to the completion list.
- Place code snippets in completion lists
When this option is selected, IntelliSense adds aliases for C# or J# code snippets to the completion list. In the case where the code snippet alias is the same as a keyword (for example,) the keyword is replaced by the shortcut. For more information, see .
Selection In Completion Lists
- Committed by typing the following characters:
Specifies all characters that execute IntelliSense automatic completion for the selected item in completion list, after they are typed.
- Committed by pressing the space bar
Specifies to include the action of pressing the space bar to execute IntelliSense automatic completion for the selected item in completion list.
- Add new line on commit with enter at end of fully typed word
Specifies that if you type all of the characters for an entry in the completion list and then press ENTER, a new line is created automatically and the cursor moves to the new line.
For example, if you typed else and then pressed ENTER, you would see the following in the editor:
| (cursor location)
If, however, you typed only el and then pressed ENTER, you would see the following in the editor:
else| (cursor location)
IntelliSense Member Selection
- IntelliSense pre-selects most recently used members
When this option is selected, IntelliSense pre-selects the members that you have recently selected in the pop-upbox for automatic object name completion, during your current session in the IDE. The history of most recently used members is cleared between each session in the IDE. For more information see .
- Clear History
Clears the history of members that you have used during automatic object name completion.