Skip to content
| Marketplace
Sign in
Visual Studio Code>Machine Learning>Mutable AI, Copilot alternative (autocomplete and more): Python, Go, Javascript, Typescript, Rust, Solidity & moreNew to Visual Studio Code? Get it now.

Mutable AI, Copilot alternative (autocomplete and more): Python, Go, Javascript, Typescript, Rust, Solidity & more

mutable-ai

mutable.ai
|
15,190 installs
| (6) | Free
AI Accelerated Programming
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

MutableAI

mutableai video intro

MutableAI for VS Code uses large scale neural networks trained on public data and metaprogramming to:

  • Autocomplete your code
  • Document your code
  • You can also give instructions directly to the AI via a prompt!
  • Refactor your code (beta)

We provide built-in fine-tuned support for a variety of languages such as Javascript/Typescript, Go, Rust, Python, Vue, Java etc. You can always add new languages under settings but the feature is experimental.

Getting started

mutableai video intro

  1. Install the extension
    • If you want to try the latest and best features, install the pre-release version
    • If you want the most stable experience, install the standard release version
  2. Click through the login pop-up browser option and follow it to mutable.ai; we recommend using login with Google or GitHub to avoid email verification.
  3. You can also manually enter your API key from mutable.ai/account
  4. Try out the commands

Watch for the extension status on the bottom right corner.

  • mutable.ai: Not authenticated
    • Extension is enabled but not authenticated
  • mutable.ai: Disabled
    • All functionality is disabled
  • mutable.ai: Ready
    • Ready to use commands and autocomplete

To try out the extension, simply open any code file and press Control + Space. You should see some inline suggestions.

Table of Contents

  • MutableAI
    • Getting started
    • Table of Contents
    • Pricing
    • Features
      • ▶️ MutableAI: Enable
      • ⏸️ MutableAI: Disable
      • Inline autocomplete
      • Full file transformations
        • 🪄 MutableAI: Give a coding instruction
        • 📄 MutableAI: Add documentation
        • 🎲 MutableAI: Refactor code (beta)
      • Settings
        • ⚙️ MutableAI: Settings
        • 🗑️ MutableAI: Settings reset
      • Lightweight
      • Privacy
        • Choose what you share
        • No keystroke logging
    • Community
    • Limitations
      • Due to VS Code limitations
    • Troubleshoot
    • Other questions
      • Is MutableAI slowing down my computer?
      • About the API key
      • Extension Settings

Pricing

  • Free tier for individuals and open source devs 🎉
  • Will charge for business and enterprise users
  • Generous discounts for startups

Features

  • All features depend on the language you work with. Some languages will have more features than others.
  • We are constantly adding more features and more languages

▶️ MutableAI: Enable

If you missed the authentication popup, or you disabled the extension manually, you can enable the extension with this command.

⏸️ MutableAI: Disable

Manually disable the extension.

Inline autocomplete

  • Inline autocompletions will appear as you type. You can also manually invoke inline autocompletion.
  • Sometimes the autocompletion gets in your way. You may want to just commit part of it. You can do so by either approach below:
    • You can enable the "line by line" option to get inline autocompletions line by line.
    • Otherwise, you can still get less suggestions by pressing Alt + ].

Default trigger keys

  • Short completion
    • Control + Space
  • Long completion
    • Control + .

Note: You can change the hotkeys in "Keyboard Shortcuts" settings available in the command palette.

Full file transformations

These transformations operate on an entire file and are accessed through command palette (⌘ Command or ⌃ Control + Shift + P) and can be assigned hotkeys. We plan on adding a side panel in future versions.

  • Note each transformation supports different filetypes by default. You can change the supported filetypes in the settings.
  • You can accept or ignore the transformation suggestions in a carefully crafted custom-built diff view, where the original file is on the left and the transformed file is on the right.

mutableai palette

Command Palette for MutableAI

🪄 MutableAI: Give a coding instruction

Give any coding instruction and the AI will try to follow it.

📄 MutableAI: Add documentation

Add documentation to structures like functions and classes.

🎲 MutableAI: Refactor code (beta)

Get code refactoring suggestions. e.g.

  • Add documentation

  • Rearrange code blocks

  • Extract functions

  • Combine repeating code following DRY principles

Settings

We will be adding more customization via settings in subsequent versions.

⚙️ MutableAI: Settings

See current user settings.

🗑️ MutableAI: Settings reset

Caution: Reset all user settings, including API key, and reinitialize the extension.

Lightweight

  • Size: 110KB
    • We use esbuild to bundle the extension for minimal size and best performance
  • Activation time:
    • The extension waits for other core components to load before it starts activating
    • Should take <50ms for most machines. Other solutions take more than twice the time
  • No telemetry
    • The extension only runs when you are actively typing in a file that you have enabled for MutableAI

Privacy

Choose what you share

  • You can choose to use relevant files in the same folder to improve the suggestions under settings

No keystroke logging

  • No keystroke logging
  • What is sent to our server
    • Up to 1000 lines of content for the active editor (and snippets of the same file type in the same folder)
    • Your acceptance of an inline autocompletion and other suggestions
  • We are also available at https://open-vsx.org/extension/mutable-ai/mutable-ai

For more information see https://mutable.ai/privacy and https://mutable.ai/security

Community

Join our discord!

Limitations

Due to VS Code limitations

  • The CodeLens button cannot appear above a deletion. (You can see it below instead)

Troubleshoot

If the extension is not working, try the following:

  • Use "reset" command
  • Enter API key manually
  • Reinstall the extension
  • Disable other extensions
  • Restart VS Code
  • Try switch between the release version and pre-release version

If still not working, contact us (support@mutable.ai) or using our chat on the website.

Other questions

Is MutableAI slowing down my computer?

  • We use the extensions everyday ourselves, so we would generally notice if there is a problem.
  • We perform regular benchmarks to compare machine resource load with or without MutableAI. The difference is hardly noticeable.
  • If you are experiencing slowdowns, try the following:
    • Disable other extensions
    • Restart VS Code
    • Try switch between the release version and pre-release version
    • Disable the extension, then re-enable the extension and see if it truly makes a difference

About the API key

  • The API key is stored securely with the VS Code secret storage API
  • The API key is shared across a VS Code installation, so you don't need to login for different workspaces
  • If you use some mechanism to sync extensions across different VS Code installations (on different machines), you will be prompted to login on the new machine

Extension Settings

  • No extra settings added

Enjoy!

  • Contact us
  • Jobs
  • Privacy
  • Terms of use
  • Trademarks
© 2023 Microsoft