RubyMine 6.3.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:

      ruby_jumpToStepDefinition.png

      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 ClickF12, Shift+F2, Ctrl+B, Ctrl+Button1 Click or Button2 ClickCtrl+B, Ctrl+Button1 Click or Button2 ClickF3 or Ctrl+Button1 ClickMeta+B, Meta+Button1 Click or Button2 ClickCommand B, Command Button1 Click or Button2 ClickCommand B, Command Button1 Click or Button2 ClickF3 or Control Button1 ClickCommand B, Command Button1 Click or Button2 Click.

Warning

You cannot navigate to a step definition file, if it resides outside the features/step_definitions directory.

See Also

Procedures:

Web Resources: