# Add The VSCode CLI To Your Path

Visual Studio Code has a command line tool that can do a bunch of things. Perhaps the most common is opening up the current directory from the command line.

First, you need to add `code` to your path. This can be done from within Code itself.

Hit `Cmd+Shift+p` to pop open the command palette. Then start typing `Shell Command ...` until the `Shell Command: Install "code" command in shell PATH` option appears. Select this and Code will add `code` to your path.

Try `code .` to open the current directory or run `code --help` for more details on what's available.


---

# 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://ploegert.gitbook.io/til/tools/vscode/add-the-vscode-cli-to-your-path.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.
