FeatureView
A read-only VS Code viewer for Gherkin .feature files. Read specifications like documentation, and explore the behavior they specify as one graph of shared scenario paths.
FeatureView never changes your feature files.

Feature preview
Open a .feature file and click Open Preview and Graph to the Side in the editor title bar (or press Ctrl+K V). The preview opens beside the editor and the behavior graph below the preview; your cursor stays in the editor. Open Preview (Ctrl+Shift+V) opens only the preview, in place of the editor.
As in Markdown preview, the preview follows the .feature file you are editing: switch to another feature file and the same preview shows it. To keep a preview on one file, run Toggle Preview Locking from the preview's ... menu (its title changes to [Preview] name), or open one with FeatureView: Open Locked Preview to the Side.
With the preview and the behavior graph open side by side, they are linked: select a step in the graph and the preview scrolls to it and outlines it (switching the following preview to that step's file if needed); click a scenario or example in the preview, or move to it with j/k, and the graph highlights its path.
- Features, rules, backgrounds, scenarios, outlines, examples, tags, data tables and doc strings.
- A scenario outline is shown as one scenario per example row, with the row's values filled in and highlighted ("Pay with a voucher of 1.00"). The Template tab shows the outline as written, with its Examples tables.
- Updates as you type, including unsaved edits.
- A file that does not parse shows the errors above its source.
- Keyboard:
↓/↑ (or j/k) move between sections, Enter opens that line in the editor. Double-click does the same.
Behavior graph
The graph opens with the preview. To open it alone (for example for a folder), run FeatureView: Open Behavior Graph from the Command Palette or right-click a .feature file in the Explorer. The graph reads left to right from Start. Scroll to move around (Shift+scroll moves sideways), Ctrl+scroll or the toolbar zooms, and Start jumps back to the beginning. The graph starts with the current file; choose This folder (including subfolders) or Workspace folder to widen it.
- Each scenario is a path from Start. Scenarios that begin with the same steps share those steps, across files too; they split where their steps differ. Steps with the same text but a different history are kept apart.
- A step's details list every line it is written on and every scenario that passes through it.
- A double border marks a step where a scenario ends, even when longer scenarios continue past it.
- A scenario outline is shown once, with its
<placeholders> (dashed border). Select its last step to read each example row as a filled-in scenario; Show path adds that row to the graph as its own path.
- Tags takes a Cucumber tag expression such as
@smoke and not @wip. Tags are inherited from the feature, rule and examples.
- Find highlights matching steps. Scenario highlights one path.
- Keyboard: click the graph, then
→/← move along a path, ↑/↓ move between branches, Enter opens the source, +/- expand or collapse.
- Large graphs show the first steps and hide deeper ones (dotted border). Double-click a step, or press
+/-, to expand or collapse it.
- The legend in the graph's top-right corner explains the borders. Click × to hide it and Legend to bring it back; the graph remembers your choice.
- Files that fail to parse are left out and listed above the graph.
The graph shows the paths your feature files specify. It does not show every possible ordering of steps, and it says nothing about what your code does at runtime.
Settings
| Setting |
Default |
|
featureView.graph.maxVisibleNodes |
250 |
Steps shown before deeper steps are hidden. |
featureView.graph.maxFiles |
2000 |
Most files read for a folder or workspace graph. files.exclude is respected. |
Development
See REQUIREMENTS.md, GLOSSARY.md, PROGRESS.md and AGENTS.md.
npm install
npm run compile # type-check and bundle
npm test # unit tests
npm run test:behavior # behavioral tests: the scenarios in features/ (Cucumber)
npm run test:integration # runs inside a downloaded VS Code
npm run test:visual # Windows: drives your installed VS Code, saves screenshots to .vscode-test/screenshots
npm run test:visual:light # the same in Light Modern, screenshots in .vscode-test/screenshots/light
# FV_MODE=interact (wheel, keyboard) or large (400 files); --theme=dark|light|hc
features/ specifies FeatureView's own behavior in Gherkin, so it is also a sample to open in FeatureView.
Press F5 in VS Code to try the extension. examples/ has sample feature files.
License
MIT