A VSCode extension that adds a custom GitHub Copilot Chat participant for searching GitHub code repositories. This extension enhances your coding experience by allowing you to search GitHub code using regex patterns directly from within VSCode's Copilot Chat.
- Integrates with GitHub Copilot Chat as a custom participant
- Search GitHub code repositories using regex patterns
- View code snippets and repository links directly in the chat
- Secure GitHub token management
- Visual Studio Code 1.93.0 or higher
- GitHub Copilot Chat extension installed
- GitHub Personal Access Token with appropriate permissions
- Download the latest
.vsix
file from the releases page - Open VSCode
- Press
Ctrl+Shift+P
(Windows/Linux) orCmd+Shift+P
(macOS) - Type "Install from VSIX" and select the command
- Choose the downloaded
.vsix
file
Alternatively, you can install from the command line:
code --install-extension vscode-searchable-1.0.0.vsix
- On first use, the extension will prompt you for a GitHub Personal Access Token
- Create a token at https://github.com/settings/tokens with the following scopes:
repo
read:user
- Enter the token when prompted
To reset your GitHub token:
- Open the command palette (
Ctrl+Shift+P
orCmd+Shift+P
) - Run the command "Searchable: Reset GitHub Token"
- Open GitHub Copilot Chat in VSCode
- Select the "searchable" participant
- Enter your search query
- The extension will search GitHub repositories and display results with:
- Repository names
- Direct links to code
- Code snippets with matching content
Example queries:
Search for React hooks: "useEffect.*="
Find TypeScript interfaces: "interface.*{}"
Look for specific function calls: "fetchData\("
To build the extension from source:
- Clone the repository
git clone https://github.com/HikaruEgashira/github-resercher
cd github-resercher
- Install dependencies
bun install
- Build the extension
bun compile
- Package the extension
bunx vsce package
This project is licensed under the MIT License - see the LICENSE file for details