Using Code Completion

See Also

The IDE has a dynamic C and C++ code completion feature that enables you to type a few characters and then see a list of possible classes, methods, variables, and so on that can be used to complete the expression. You can disable this automatic feature so that code completion suggestions only appear when you press Ctrl-Space.

To complete a C or C++ expression:

  1. In the Editor window, type a few characters of an expression and press Ctrl-Space or Ctrl-\ to open the code completion box.

    The code completion box displays a scrolling list of possible classes, methods, variables, functions, and so on that can complete your expression.

    If the IDE can determine only one possible completion for the expression, the expression is completed automatically. If the IDE cannot determine how to complete the expression, the code completion box displays "No suggestions."

  2. Use the most convenient combination of the following options to select an item from the code completion box:

Notes:

To disable the automatic display of the completion box:

  1. Choose Tools > Options and click Editor.
  2. In the Code Completion tab, choose All Languages, and deselect the Auto Popup Completion Window checkbox.

To change automatic code completion options:

  1. Choose Tools > Options and click Editor.
  2. In the Code Completion tab, choose C/C++ Source.
See Also
  C/C++ Code Completion Options
  Using Code Templates

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.