Skip to content

Getting Started

Get up and running with MyDeskBot IDE extensions quickly.

What is MyDeskBot IDE?

MyDeskBot IDE brings AI-powered assistance directly to your favorite code editor. It provides intelligent code completion, refactoring suggestions, and contextual help right where you code.

Supported Editors

MyDeskBot is available for:

  • JetBrains IDEs (IntelliJ IDEA, PyCharm, WebStorm, etc.)
  • Visual Studio Code
  • Neovim

Quick Start

Step 1: Install the Extension

IntelliJ IDEA / JetBrains IDEs

  1. Open your JetBrains IDE
  2. Go to Settings/PreferencesPlugins
  3. Search for "MyDeskBot"
  4. Click Install
  5. Restart the IDE

Visual Studio Code

  1. Open VS Code
  2. Go to Extensions (Ctrl+Shift+X / Cmd+Shift+X)
  3. Search for "MyDeskBot"
  4. Click Install

Neovim

  1. Install using your plugin manager:

vim-plug:

lua
Plug 'mydeskbot/mydeskbot-nvim'

packer.nvim:

lua
use 'mydeskbot/mydeskbot-nvim'

lazy.nvim:

lua
{ 'mydeskbot/mydeskbot-nvim' }
  1. Run :PlugInstall / :PackerSync / :Lazy sync

Step 2: Configure Your API Key

  1. Open MyDeskBot settings
    • JetBrains: Settings → Tools → MyDeskBot
    • VS Code: Settings → MyDeskBot
    • Neovim: Edit your Neovim config
  2. Enter your API key:
    • OpenAI API key (sk-...)
    • Or Anthropic API key (sk-ant-...)
  3. Select your preferred model
  4. Click Save / Apply the changes

Step 3: Start Using MyDeskBot

Once configured, you can:

  • Code Completion: Start typing and accept suggestions with Tab
  • Chat: Open the MyDeskBot panel (Ctrl+Shift+M / Cmd+Shift+M)
  • Refactor: Select code and invoke refactoring (Ctrl+Shift+R / Cmd+Shift+R)
  • Explain: Select code and ask for explanation (Ctrl+Shift+E / Cmd+Shift+E)

First Steps

Try Code Completion

  1. Create a new file (e.g., hello.py)
  2. Start typing a function:
    python
    def calculate_
  3. MyDeskBot suggests completions:
    python
    def calculate_average(numbers: list) -> float:
  4. Press Tab to accept the suggestion

Use the AI Chat

  1. Open the MyDeskBot panel (Ctrl+Shift+M / Cmd+Shift+M)

  2. Ask a question:

    How do I reverse a string in Python?
  3. Get the answer:

    python
    # Using slicing
    reversed_string = "hello"[::-1]
    
    # Using reversed() function
    reversed_string = "".join(reversed("hello"))

Get Code Explanation

  1. Select some code
  2. Right-click → Explain Code (or press Ctrl+Shift+E)
  3. MyDeskBot explains what the code does

Configuration

Basic Configuration

JetBrains (settings.xml):

xml
<application>
  <component name="MyDeskBotSettings">
    <option name="apiKey" value="sk-..." />
    <option name="model" value="gpt-4o" />
    <option name="temperature" value="1.0" />
  </component>
</application>

VS Code (settings.json):

json
{
  "mydeskbot.apiKey": "sk-...",
  "mydeskbot.model": "gpt-4o",
  "mydeskbot.temperature": 1.0
}

Neovim (init.lua):

lua
require('mydeskbot').setup({
  api_key = 'sk-...',
  model = 'gpt-4o',
  temperature = 1.0
})

Common Features

1. Inline Chat

Ask the AI inline while coding:

// Write code here
[Type your question]
// AI responds inline

2. Code Actions

Right-click to see available AI actions:

  • Explain Code: Get a detailed explanation
  • Refactor: Improve code quality
  • Add Comments: Generate documentation
  • Find Bugs: Identify potential issues
  • Optimize: Improve performance

3. Multi-file Context

MyDeskBot can understand multiple files:

  1. Open multiple files in your editor
  2. Ask questions that reference multiple files
  3. MyDeskBot analyzes the entire context

Tips for Success

  1. Be Specific: Provide clear context in your prompts
  2. Use Comments: Add comments explaining what you want
  3. Iterate: Refine your requests based on responses
  4. Learn: Ask the AI to explain its suggestions
  5. Trust but Verify: Always review AI-generated code

Keyboard Shortcuts

ActionWindows/LinuxmacOS
Open ChatCtrl+Shift+MCmd+Shift+M
Code CompletionTabTab
Explain CodeCtrl+Shift+ECmd+Shift+E
RefactorCtrl+Shift+RCmd+Shift+R
Generate DocCtrl+Shift+DCmd+Shift+D

Next Steps

Need Help?