IDE Setup
VS Code Setup
Complete guide to installing and configuring Autohand Code in Visual Studio Code. Master AI-assisted coding with powerful IDE integration.
Quick Install: Install the Autohand Code extension from the VS Code marketplace in seconds. Jump to installation or check our feature overview.
Installation
Method 1: VS Code Marketplace (Recommended)
- Open VS Code
- Press Ctrl+Shift+X (Windows/Linux) or Cmd+Shift+X (Mac) to open the Extensions panel
- Search for "Autohand Code"
- Click "Install" on the Autohand Code extension
- Wait for installation to complete
- Click "Reload" when prompted
Method 2: Command Line
bash
# Install via command line
npm install -g autohand-cli
# Verify installation
autohand --version
# Install VS Code extension
code --install-extension autohand.autohand-codeMethod 3: Manual Download
- Visit the VS Code Marketplace
- Click "Download Extension"
- Open VS Code
- Go to File > Extensions
- Click the "..." menu and select "Install from VSIX"
- Select the downloaded .vsix file
System Requirements
- VS Code 1.74.0 or higher
- Node.js 16+ (for CLI features)
- 2GB RAM minimum (4GB recommended)
- Internet connection for AI features
First Setup
After installation, configure Autohand Code for optimal performance:
Authentication
- Open VS Code
- Press Ctrl+Shift+P (Windows/Linux) or Cmd+Shift+P (Mac) to open the Command Palette
- Type "Autohand Code: Login" and press Enter
- Follow the authentication prompts
- Or use the command:
Autohand Code: Authenticate
Configuration
json
// Open VS Code settings (Ctrl+,)
{
"autohand-code.enabled": true,
"autohand-code.model": "gpt-4",
"autohand-code.maxTokens": 2048,
"autohand-code.temperature": 0.7,
"autohand-code.autoComplete": true,
"autohand-code.inlineSuggestions": true,
"autohand-code.chat.enabled": true
}Workspace Configuration
Create a .vscode/settings.json file in your project:
json
{
"autohand-code.projectType": "web-app",
"autohand-code.framework": "react",
"autohand-code.styleGuide": "airbnb",
"autohand-code.testFramework": "jest",
"autohand-code.excludePatterns": [
"node_modules/**",
"dist/**",
"build/**"
]
}Core Features
1. Intelligent Code Completion
Autohand Code provides context-aware code suggestions as you type:
- Start typing and press Ctrl+Space to see suggestions
- Suggestions consider your entire project context
- Supports 50+ programming languages
- Learn from your coding patterns
2. Inline Code Generation
Generate code directly in your editor:
- Write a comment describing what you want
- Press Ctrl+Enter to generate code
- Accept suggestions with Tab
- Reject suggestions with Esc
3. Chat Interface
Open the Autohand Code chat panel for complex tasks:
- Press Ctrl+Shift+A to open chat
- Ask questions about your code
- Request refactoring or optimization
- Generate entire functions or classes
4. Code Refactoring
Intelligent refactoring suggestions:
- Right-click on code and select "Autohand Code: Refactor"
- Choose from suggested improvements
- Apply changes with preview
- Supports modernization patterns
Productivity Workflows
Workflow 1: Rapid Prototyping
javascript
// 1. Create a new file
// 2. Add a comment describing your component
// Create a React component for user profile with avatar, name, email, and edit button
// 3. Press Ctrl+Enter to generate
// Autohand Code will generate the complete component
// 4. Review and adjust as neededWorkflow 2: Test Generation
javascript
// 1. Write your function
const calculateTotal = (items, tax = 0.1) => {
return items.reduce((sum, item) => sum + item.price * item.quantity, 0) * (1 + tax);
};
// 2. Right-click and select "Autohand Code: Generate Tests"
// 3. Tests are automatically generatedWorkflow 3. Code Documentation
javascript
// 1. Write your function
const processPayment = async (paymentDetails) => {
// Implementation details...
};
// 2. Add comment: // Generate JSDoc documentation
// 3. Press Ctrl+Enter to generate documentationAdvanced Features
Multi-file Context
Autohand Code understands your entire project:
- Analyzes imports and dependencies
- Considers project structure
- Learns from your coding patterns
- Maintains consistency across files
Custom Templates
json
// Create custom templates in .vscode/autohand-templates.json
{
"react-component": {
"template": "import React from 'react';
const {{componentName}} = ({{props}}) => {
return (
<div className="{{className}}">
{{content}}
</div>
);
};
export default {{componentName}};",
"variables": ["componentName", "props", "className", "content"]
}
}Team Collaboration
- Share code snippets with team
- Sync coding standards
- Collaborative code reviews
- Knowledge base integration
Performance Optimization
json
// Performance settings in VS Code settings
{
"autohand-code.cache.enabled": true,
"autohand-code.cache.size": "100MB",
"autohand-code.parallelRequests": 3,
"autohand-code.maxTokens": 4096,
"autohand-code.timeout": 30000
}Keyboard Shortcuts
| Shortcut | Action | Platform |
|---|---|---|
| Ctrl+Shift+A | Open Autohand Code Chat | Windows/Linux |
| Cmd+Shift+A | Open Autohand Code Chat | Mac |
| Ctrl+Enter | Generate Code | Windows/Linux |
| Cmd+Enter | Generate Code | Mac |
| Ctrl+Space | Show Suggestions | All |
| Tab | Accept Suggestion | All |
| Esc | Dismiss Suggestion | All |
| Ctrl+Shift+P | Command Palette | Windows/Linux |
| Cmd+Shift+P | Command Palette | Mac |
Troubleshooting
Extension Not Working
# 1. Check if extension is enabled
# Open Extensions panel (Ctrl+Shift+X)
# Look for Autohand Code and ensure it's enabled
# 2. Check for conflicts
# Disable other AI coding extensions temporarily
# 3. Reload VS Code
# Ctrl+Shift+P -> "Developer: Reload Window"
# 4. Check logs
# Help -> Toggle Developer Tools -> ConsoleAuthentication Issues
# 1. Clear authentication cache
# Ctrl+Shift+P -> "Autohand Code: Clear Cache"
# 2. Re-authenticate
# Ctrl+Shift+P -> "Autohand Code: Login"
# 3. Check API key
# Ctrl+Shift+P -> "Autohand Code: Check Status"Performance Issues
- Reduce maxTokens in settings
- Enable caching
- Exclude large directories
- Disable unused features
Next Steps
Master VS Code integration with these advanced guides:
Complete Feature Guide
Deep dive into all VS Code features and capabilities.
Writing Effective Prompts
Learn how to communicate effectively with Autohand Code.
Configuration Guide
Comprehensive configuration options and best practices.
CI/CD Integration
Integrate Autohand Code into your development pipeline.