---
title: IDE support
description: IntelliJ modules from `melos bootstrap`, and the Melos extension for VS Code.
---
> ## Documentation Index
> Fetch the complete documentation index at: https://melos.invertase.dev/llms.txt
> Use this file to discover all available pages before exploring further.

## IntelliJ

Melos integrates with IntelliJ via the generation of
[IntelliJ project module](https://www.jetbrains.com/help/idea/creating-and-managing-modules.html)
files (`.iml` files) during `melos bootstrap`.

Melos creates an IntelliJ project module for each package in your Melos
workspace, and creates Run configurations for your packages:

- **Flutter Run** for each Flutter app (a Flutter package with a
  `lib/main.dart` file, or with an entry point configured through
  [`runArguments`](/configuration/overview#runarguments)).
- **Dart Run** for each Dart file in the `bin` directory of a pure Dart
  package (a package that does not [need the Flutter SDK](/filters#--flutter)).
- **Flutter Test** for each Flutter package or plugin, excluding apps, that has
  a `test` directory.
- **Dart Test** for each pure Dart package that has a `test` directory.
- **Melos Run** for each script defined in your workspace configuration.

The Flutter Run and Dart Run configurations can be disabled with the
[`generateAppRunConfigs`](/configuration/overview#generateapprunconfigs)
option.

Melos does not generate IntelliJ files in continuous integration. It skips
generation when `CI`, `CONTINUOUS_INTEGRATION`, `BUILD_NUMBER`, or `RUN_ID` is
set.

![Generated Run configurations](/assets/intellij-run-configurations.png)

### `melos.yaml`

<Info>This feature is only supported for Melos v6 and lower.</Info>

Enable autocompletion and validation of the `melos.yaml` file in IntelliJ:

1. Go to **Settings** > **Languages & Frameworks** > **Schemas and DTDs** >
   **JSON Schema Mappings**.
2. Add the Melos schema:
   - **Schema URL**: `https://raw.githubusercontent.com/blaugold/melos-code/main/melos.yaml.schema.json`
   - **Schema version**: JSON Schema version 7
   - **File**: the `melos.yaml` file

![Schema settings](/assets/intellij-schema-settings.png)

## VS Code

The [Melos extension][melos-code] integrates Melos with VS Code.

### `melos.yaml`

The extension provides validation and autocompletion of the `melos.yaml` file
and allows you to run scripts through CodeLenses:

![melos.yaml in VS Code](/assets/vs-code-melos-yaml.png)

### Melos scripts as tasks

The extension provides Melos scripts as VS Code tasks:

![Tasks provided to VS Code](/assets/vs-code-melos-tasks.png)

To configure a task that runs a Melos script, use task type `melos`:

```json
// .vscode/tasks.json
{
  "version": "2.0.0",
  "tasks": [
    {
      "type": "melos",
      "script": "test",
      "label": "melos: test"
    }
  ]
}
```

### Commands

The following commands are available in the command palette:

- **Melos: Bootstrap** to run `melos bootstrap`.
- **Melos: Clean** to run `melos clean`.
- **Melos: Run script** to select and run a Melos script.
- **Melos: Show package graph** to show the package graph of the Melos workspace.

![Melos commands in VS Code command palette](/assets/vs-code-melos-commands.png)

### Package graph

The dependency graph of packages in the Melos workspace can be viewed by running
the **Melos: Show package graph** command.

![Show package graph in VS Code](/assets/vs-code-package-graph.png)

[melos-code]:
  https://marketplace.visualstudio.com/items?itemName=blaugold.melos-code
