A Visual Studio Code extension that allows you to fetch and view StackOverflow answers directly within the editor, eliminating the need to switch between your IDE and web browser.
Features
Inline StackOverflow Fetching: Select code or text and fetch relevant StackOverflow answers with a simple command
Dual Display Modes: View answers in a collapsible side panel or inline pop-up
Search Customization: Customize search queries with additional keywords and filtering options
Configurable Results: Set the number of answers to fetch (1-20) and preferred technology tags
Installation
Install the extension from the Visual Studio Code Marketplace
Reload Visual Studio Code
Usage
Select text in the editor or place your cursor in the context you want to search
Press Ctrl+Shift+Q (or Cmd+Shift+Q on Mac) or use the Command Palette (Ctrl+Shift+P) and search for "Fetch StackOverflow Answers"
View the results in your preferred display mode
Configuration
You can customize the extension behavior through VS Code settings:
stackoverflowFetcher.displayMode: Choose between 'inline' or 'panel' display (default: 'panel')
stackoverflowFetcher.resultCount: Number of answers to fetch (1-20, default: 5)
stackoverflowFetcher.preferredTags: List of preferred tags for filtering results
Development
Prerequisites
Node.js (version 16.x or higher)
Visual Studio Code
Setup
Clone the repository
Run npm install to install dependencies
Open the project in Visual Studio Code
Press F5 to compile and run the extension in a new Extension Development Host window
Building
npm run compile - Compile the TypeScript code
npm run watch - Compile and watch for changes
npm run lint - Run ESLint
npm run test - Run tests
Contributing
Contributions are welcome! Please read our Contributing Guidelines for details on how to submit pull requests, report issues, and suggest improvements.
License
This project is licensed under the MIT License - see the LICENSE file for details.