Hexagonal Context Filter is a Visual Studio Code extension that helps you focus on a specific hexagonal context (module) in your project. It hides everything in the Explorer except the selected context and its contents, making it easier to work in large codebases that follow the hexagonal architecture.
Features
Filter the VS Code Explorer to show only the selected hexagonal context and its subfolders/files.
Hide all other folders and files, including files in the workspace root.
Easily clear the filter to restore the full project view.
Status bar controls for quick context switching and filter clearing.
Detects typical hexagonal structure (Domain, Application, Infrastructure) and shows a summary.
Quick Start
Install the extension in VS Code.
Open your project.
Click the "Hexagonal" icon in the status bar or run the command:
Hexagonal Context Filter: Set Context
Select a context from the list. Only that context and its contents will be visible in the Explorer.
To clear the filter and show everything again, click the clear (X) icon in the status bar or run:
Hexagonal Context Filter: Clear Context
Configuration
You can configure where the extension looks for contexts and which folders to exclude by default. In your VS Code settings (settings.json):