IntelliJ IDEA 13.1.0 Web Help

To navigate from a .feature file to step definition
  1. Open the desired .feature file in the editor.
  2. Do one of the following:
    • Keeping the Ctrl button pressed, hover your mouse pointer over a step. The step turns to a hyperlink, and its reference information is displayed at the tooltip:

      cucumberJumpToStepDefinition

      Click the hyperlink. The step definition file opens in the editor, with the caret resting at the desired step definition.

    • On the main menu, choose Navigate | Declaration.
    • Press Ctrl+B, Ctrl+Button1 Click or Button2 ClickCtrl+B, Ctrl+Button1 Click or Button2 ClickCtrl+B, Ctrl+Button1 Click or Button2 ClickCtrl+B, Ctrl+Button1 Click or Button2 ClickCtrl+Alt+G, Escape, Period, Alt+Period or Ctrl+Button1 ClickCtrl+B, Ctrl+Button1 Click or Button2 ClickF12, Shift+F2, Ctrl+B, Ctrl+Button1 Click or Button2 ClickCtrl+B, Ctrl+Button1 Click or Button2 ClickF3 or Ctrl+Button1 ClickCommand B, Command Button1 Click or Button2 ClickCommand B, Command Button1 Click or Button2 ClickF3 or Control Button1 Click.

Warning

You cannot navigate to a step definition file, if it resides outside a package under the test root.

See Also

Procedures:

Web Resources: