# Visual Studio Code

Providing that you are using at least dart 2.15 then OnePub works with Visual Studio Code out of the box.

The only actions required are to install OnePub and then login:

```dart
flutter pub global activate onepub
onepub login
```

{% hint style="info" %}
If you are running a Dart version pre 2.12 then follow the[ pre 2.12](/guides/installing/pre-dart-2.12.md) install instructions.
{% endhint %}

## Docker containers

VS Code provides the ability to do your debugging in a local docker container via the command:

`Remote-Containers: Open Folder in Container...`

The OnePub cli tooling works as normal in a docker container but please read the section on  [Docker](/guides/docker.md) for further details and non-interactive auth with OnePub from within a Docker container.

### Install onepub into docker

You will also want to install onepub into the Docker container.

To do this edit the the .devcontainer/Dockerfile and add the following command to the end of the file:

```docker
RUN dart pub global activate onepub
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.onepub.dev/guides/installing/ide-integration/visual-studio-code.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
