SharpFocus
~/projects/sharpfocus

SharpFocus

See the data flow. Ignore the noise.

SharpFocus highlighting data flow in VS Code

The Problem

Your service crashes with a null reference. The stack trace shows where it failed, but not why. Was it the cache? The database? A validation check that ran moments before? Traditional tools show you every mention of the variable—hundreds of lines—but can't tell you which ones actually matter.

The Solution

SharpFocus uses program slicing to show you exactly what influences a variable and what it influences. Click any variable, and everything irrelevant fades away. What's left is the dependency chain—the handful of statements that actually matter.

backward_slice: What code could have set this to null?
forward_slice: What code depends on this value?
focus_mode: Show me both. Hide everything else.

Get Started

VS Code
ext install RahulTR.sharpfocus
JetBrains Rider
Settings → Plugins → SharpFocus

Learn More

How It Works

In VS Code

1

Open any C# file and click on a variable, parameter, or field

2

SharpFocus instantly analyzes and highlights the complete data flow

3

Use Ctrl+Alt+N/P to navigate through dependencies

VS Code before SharpFocus
Before
VS Code with SharpFocus active
After

In JetBrains Rider

1

Works seamlessly with Rider's existing features

2

Same powerful analysis, native Rider integration

3

Color-coded gutter icons and inline highlights

Rider before SharpFocus
Before
Rider with SharpFocus active
After
Made with ❤️ for C# developers
Inspired by Flowistry for Rust MIT Licensed