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)

  1. Open VS Code
  2. Press Ctrl+Shift+X (Windows/Linux) or Cmd+Shift+X (Mac) to open the Extensions panel
  3. Search for "Autohand Code"
  4. Click "Install" on the Autohand Code extension
  5. Wait for installation to complete
  6. 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-code

Method 3: Manual Download

  1. Visit the VS Code Marketplace
  2. Click "Download Extension"
  3. Open VS Code
  4. Go to File > Extensions
  5. Click the "..." menu and select "Install from VSIX"
  6. 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

  1. Open VS Code
  2. Press Ctrl+Shift+P (Windows/Linux) or Cmd+Shift+P (Mac) to open the Command Palette
  3. Type "Autohand Code: Login" and press Enter
  4. Follow the authentication prompts
  5. 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 needed

Workflow 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 generated

Workflow 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 documentation

Advanced 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 -> Console

Authentication 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: