Hawkeye Search - VS Code

Search your indexed codebase directly from VS Code and integrate your support tools.

Built for developers working in large codebases where normal editor search can become slow, noisy, inaccurate or disconnected from the rest of the project workflow. We want to give you the overview you deserve. All of it runs locally.

Visual Studio Marketplace


Startup

Hawkeye Search adds a Hawkeye activity bar view inside VS Code. From there you can search, filter groups, open results and run configured tools against files in your project.

  • Requires the Hawkeye desktop application for codebase search.
  • Uses your local Hawkeye installation and indexed project data.
  • Allow filtering per project or however your setup is.
Screenshot of Hawkeye Search for VS Code on startup

Options

Use Hawkeye → Options to configure the local Hawkeye install path, search delay, initial result/max count and executable tools.

  1. Open the Command Palette and run Hawkeye → Options.
  2. Optionally set programopener.exe if you want editor launches to reuse existing application instances.
  3. Adjust the search delay and returned results.
  4. Add external tools or extract existing editor commands from Hawkeye.
Screenshot of Hawkeye Options in VS Code


Groups and Filters

Hawkeye groups appear as selectable filters in the VS Code search panel. This makes it easier to narrow a search to code, content, tools, documentation or any other groups configured in Hawkeye.

  1. Toggle groups on or off from the search panel.
  2. Right click a group to search only that group or all groups except that group.
  3. Use the filters to keep searches focused in large workspaces or multi-project repositories.
Screenshot of Hawkeye group filters in VS Code

External Tools

The extension can run configured tools against the active editor file or a selected search result. This makes Hawkeye useful as both a search panel and a launcher for your normal workflow.

  1. Add tools in Hawkeye → Options.
  2. Use %FILE% and %LINE% placeholders in command arguments.
  3. Run configured tools from the right-click menu on search results.
  4. Use Hawkeye: Run Command 1-4 to run tools against the active editor file.
  5. Use Open Folder in New Window, to quickly go between projects in VS Code.
Screenshot of external tool commands in Hawkeye Search for VS Code

Commands

Hawkeye Search for VS Code adds support for commands.

  1. Extract Editors From Hawkeye → Load the tools setup inside Hawkeye backend
  2. Choose, Name, Executable Location and Arguments that will be fed into the command.
  3. %FILE% → Replaced wtih current file
  4. %LINE% → Replaced wtih current line
  5. Add tools from presets
Screenshot of Hawkeye commands in the VS Code Command Palette

Give feedback?

We are always looking for improvements - info@zaragsoft.se