Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>Explain Function AINew to Visual Studio Code? Get it now.
Explain Function AI

Explain Function AI

cash

|
7 installs
| (0) | Free
Spiega le funzioni passo per passo usando AI (Groq - gratuito)
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Explain Function AI

A VSCode extension that explains functions step by step using artificial intelligence (Groq - free).

Features

1. Explain Function

Click on "💡 Explain Function" that appears above each function to get a detailed explanation of the code.

2. Explain Call

Click on "🔍 Explain functionName()" to see the explanation of a called function in the code. The extension:

  • Automatically finds the function definition (even in other files)
  • Reads the source code
  • Provides a complete explanation

Shortcut: Cmd+Shift+E (Mac) / Ctrl+Shift+E (Windows)

Supported Languages

  • Python
  • JavaScript
  • TypeScript
  • Java
  • PHP
  • Go
  • Rust
  • C/C++

Installation

  1. Download the .vsix file from the release page
  2. In VSCode: Cmd+Shift+P → "Extensions: Install from VSIX..."
  3. Select the downloaded .vsix file

Configuration

1. Get a Groq API Key (Free)

  1. Go to console.groq.com
  2. Create a free account
  3. Generate a new API Key

2. Configure the Extension

  1. Cmd+Shift+P → "Explain Function: Set API Key"
  2. Enter your API Key

Or go to Settings → Extensions → Explain Function AI

3. Change the Explanation Language

By default, the extension automatically detects VSCode's language. To set a different language:

  1. Open VSCode settings (Cmd+, on Mac / Ctrl+, on Windows)
  2. Search for explainFunction.language
  3. Select the desired language from the dropdown:
    • Auto (detect from VSCode) - Automatically detects VSCode's language
    • English
    • French
    • Italian
    • Spanish
    • German
    • Portuguese
    • Chinese
    • Japanese

Or manually add to your settings.json:

"explainFunction.language": "English"

Options

Setting Description Default
explainFunction.groqApiKey Your Groq API Key -
explainFunction.language Explanation language Auto (detect from VSCode)
explainFunction.detailLevel Detail level (brief, detailed, very-detailed) detailed

4. Odoo Development Setup

The extension can find function definitions across Odoo source code (Community and Enterprise) using VSCode's python.analysis.extraPaths setting.

To enable Odoo function lookup, add the Odoo source paths to your workspace settings.json (in your Odoo project):

{
    "python.analysis.extraPaths": [
        "/path/to/odoo/addons",
        "/path/to/odoo/odoo",
        "/path/to/enterprise"
    ]
}

Examples by OS:

macOS:

"python.analysis.extraPaths": [
    "/Users/yourname/odoo/addons",
    "/Users/yourname/odoo/odoo",
    "/Users/yourname/enterprise"
]

Linux:

"python.analysis.extraPaths": [
    "/home/yourname/odoo/addons",
    "/home/yourname/odoo/odoo",
    "/home/yourname/enterprise"
]

Windows:

"python.analysis.extraPaths": [
    "C:\\Users\\yourname\\odoo\\addons",
    "C:\\Users\\yourname\\odoo\\odoo",
    "C:\\Users\\yourname\\enterprise"
]

Note: Each developer must configure these paths according to where Odoo is installed on their system. This setting is also used by Pylance for autocompletion, so most Odoo developers already have it configured. When you click "Explain" on a function like is_downpayment(), the extension will search these paths to find the original definition even if you only have your custom module open.

Usage

  1. Open a file with supported code
  2. You'll see "💡 Explain Function" above each function
  3. You'll see "🔍 Explain fetch()" (or other function) on lines with function calls
  4. Click the button to get the explanation

Build from Source

# Clone the repository
git clone https://github.com/emignox/vscode-explain-function.git
cd vscode-explain-function

# Install dependencies
npm install

# Compile
npm run compile

# Create the VSIX package
npm run package

License

MIT

Author

emignox

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft