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 ^ 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 ⌘B, ⌘Button1 Click, Button2 Click, ⌘B, ⌘Button1 Click or Button2 Click⌘B, ⌘Button1 Click, Button2 Click, ⌘B, ⌘Button1 Click or Button2 ClickF3, ⌃Button1 Click, F3 or ⌃Button1 ClickF12, ⇧ F2, ^ B, ^ Button1 Click, Button2 Click, F12, ⇧F2, ⌃B, ⌃Button1 Click, Button2 Click, F12, ⇧F2, ⌃B, ⌃Button1 Click or Button2 Click^ ⌥ G, Escape, Period, ⌥ Period, ^ Button1 Click, ⌃⌥G, ⎋, ., ⌥., ⌃Button1 Click, ⌃⌥G, ⎋, ., ⌥. or ⌃Button1 Click.

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