CLion 2018.2 Help

Navigating to Definition or Declaration

Navigate | Definition(s), Navigate | Declaration

Navigate to Definition and Navigate to Declaration commands enable you to quickly jump to the place where the code entity (variable, function, class) of interest has been defined or declared.

Navigate to definition

  1. Place caret at the code element
  2. Do one of the following:
    • On the main menu, choose Navigate | Definition
    • Press Ctrl+Alt+B
    • Click the middle mouse button.
cl navigate to definition

Navigate to declaration

  1. Place caret at the code element
  2. Do one of the following:
    • On the main menu, choose Navigate | Declaration
    • Press Ctrl+B
    • Keeping Ctrl pressed, point to the symbol, and click, when it turns to a hyperlink. The pop-up message will show the declaration information:
      cl navigate to definition2
      Click again to navigate to the declaration.
Last modified: 18 September 2018

See Also