Export (0) Print
Expand All
3 out of 4 rated this helpful - Rate this topic

List Members

You can display a list of valid member variables or functions for the appropriate class, struct, union or namespace. Selecting from the list inserts the member into your code.

To use the List Members option

  1. Begin typing the name of your object, and then type ALT+RIGHT ARROW to use Complete Word, which will display the members list box if what you have typed has more than one possible match or no match at all.

    IntelliSense displays all valid members in a scrollable list. For example, you can scroll or use the arrow keys to navigate through the list, or, if you know the first few letters of the member name, begin typing to jump directly to the member in the list.

  2. After the name of a class or structure, type the scope operator:
    • . (period) for an object instance.
[C++]
  • -> (pointer to member) for a pointer to an object instance.
  • :: (scope resolution operator) for a class, structure, union or namespace.
  1. To insert the selected member in your code, do one of the following:
    • Type the character that will follow the member, such as open parenthesis, comma, space, semicolon, or others, to insert the selected member followed by the character that you have just typed. This works for any nonidentifier character.

    -or-

    • Press TAB, CTRL+ENTER, ENTER, or double-click to insert just the member. If no item is selected in the drop-down menu, ENTER inserts a blank new line. CTRL-ENTER will insert the item that has the focus box even if it is not selected.
  2. Press ESC at any time to close the Members list.

When you select an item from the Members list, but before you insert it, you will get Quick Info on the item and any code comments for the item. See Supplying Code Comments for more information.

To turn List Members off by default, clear Auto list members from the General property page for the desired language. See Modifying IntelliSense Options for more information.

The List Members display may be have many entries. You can go to the first element of the list or to the last element by using CTRL-Page Up and CTRL-Page Down while in the List Members display.

You can manually invoke the List Members feature as follows:

  • Use the CTRL+J keyboard or the CTRL+SPACE shortcut.
[C#]
  • On the Edit menu, click IntelliSense and then click List Members.
  • Right-click the text editor and click List Members from the shortcut menu.
  • Select the List Members toolbar button from the Text Editor toolbar.
[Visual Basic]
  • On the Edit menu, click IntelliSense and then click List Members.
  • Right-click the text editor and click List Members from the shortcut menu.
  • Select the List Members toolbar button from the Text Editor toolbar.
[C++]
  • On the Edit menu, click IntelliSense and then click List Members.
  • Right-click the text editor and click List Members from the shortcut menu.
  • Select the List Members toolbar button from the Text Editor toolbar.

When invoked on a blank line or outside of a recognizable scope, the Members list displays symbols in the global namespace.

[C++]

If you invoke the List Members option with the insertion point in global scope or typing :: in any valid scope, IntelliSense populates the Members list with global symbols, including system API functions and C++ classes.

See Also

Using IntelliSense

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.