> For the complete documentation index, see [llms.txt](https://boxlang-ide.ortusbooks.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://boxlang-ide.ortusbooks.com/vscode/keybindings.md).

# Keybindings & Context Menus

The BoxLang extension provides keyboard shortcuts and context menu actions for common editing and navigation tasks.

***

## Keyboard Shortcuts

| Keybinding    | Mac           | Command                  | When                     |
| ------------- | ------------- | ------------------------ | ------------------------ |
| `Ctrl+/`      | `Cmd+/`       | **Toggle Line Comment**  | In BoxLang or CFML files |
| `Shift+Alt+A` | `Shift+Alt+A` | **Toggle Block Comment** | In BoxLang or CFML files |

{% hint style="info" %}
These keybindings can be customized in VS Code's **Keyboard Shortcuts** editor (`Ctrl+K Ctrl+S` / `Cmd+K Cmd+S`). Search for `boxlang` to see all extension keybindings.
{% endhint %}

***

## Context Menus

### Explorer (Right-Click a File or Folder)

| Menu Item                            | When Available                                     | Description                                                   |
| ------------------------------------ | -------------------------------------------------- | ------------------------------------------------------------- |
| **BoxLang: Run File**                | Right-click on `.bx`, `.bxs`, `.cfc`, `.cfs` files | Run the selected BoxLang file.                                |
| **BoxLang: Run MiniServer Here**     | Right-click on any folder                          | Start a MiniServer using the selected folder as the web root. |
| **BoxLang: Open Feature Audit Tool** | Right-click on any folder                          | Open the Feature Audit tool for the selected folder.          |

### Editor (Right-Click in Code)

| Menu Item                  | When Available                    | Description                                   |
| -------------------------- | --------------------------------- | --------------------------------------------- |
| **BoxLang: Run File**      | In BoxLang or CFML files          | Run the current file.                         |
| **BoxLang: Dump Variable** | In debug mode, BoxLang/CFML files | Dump the selected variable to the dump panel. |

### Debug Variables Panel (Right-Click a Variable)

| Menu Item         | When Available                 | Description                                                |
| ----------------- | ------------------------------ | ---------------------------------------------------------- |
| **Dump Variable** | During a BoxLang debug session | Open a rich HTML visualization of the variable's contents. |

***

## Tree View Actions

### BoxLang Servers Tree

Actions appear as **inline buttons** when hovering over a server item:

| Icon                | Action                         | When Available    |
| ------------------- | ------------------------------ | ----------------- |
| ▶️ **Run**          | Start the MiniServer           | Server is stopped |
| 🐞 **Debug**        | Start and debug the MiniServer | Server is running |
| ⏹️ **Stop**         | Stop the MiniServer            | Server is running |
| 🌐 **Open Browser** | Open the server in browser     | Server is running |
| ✏️ **Edit**         | Edit a server property         | Server is stopped |
| 🗑️ **Delete**      | Remove the server              | Server is stopped |

### BoxLang Homes Tree

Actions appear as **inline buttons** when hovering over items:

| Icon                      | Action                    | When Available           |
| ------------------------- | ------------------------- | ------------------------ |
| 🗑️ **Clear Class Files** | Delete compiled classes   | On a BoxLang Home        |
| 📂 **Open Home**          | Open in file manager      | On a BoxLang Home        |
| 🗑️ **Remove Home**       | Remove Home registration  | On non-default homes     |
| 📄 **Open Log**           | Open log file             | On a log file item       |
| 🗑️ **Clear Log**         | Clear log contents        | On a log file item       |
| ➕ **Install Module**      | Install from ForgeBox     | On the modules directory |
| 🗑️ **Remove Module**     | Remove installed module   | On a module item         |
| 🌐 **Module Home Page**   | Open module documentation | On a module item         |

### Tree View Title Bar

| Button           | Action                                             |
| ---------------- | -------------------------------------------------- |
| ➕ (Servers tree) | **Add Server** — Create a new MiniServer           |
| ➕ (Homes tree)   | **Add BoxLang Home** — Register a new BoxLang Home |

***

## Disabled Command Palette Entries

Some commands are intentionally hidden from the Command Palette because they are contextual. These only appear in tree views or context menus:

* All Server management commands (add, edit, delete, run, stop, debug, open browser)
* All BoxLang Home management commands (add, remove, open, clear, install module, etc.)
* **BoxLang: Run MiniServer Here** (Explorer context menu only)
* **BoxLang: Run Web Server** (legacy)

***

## Related Pages

{% content-ref url="/pages/Y3ZDPEP8qW43OySIjbi8" %}
[Commands Reference](/vscode/commands-reference.md)
{% endcontent-ref %}

{% content-ref url="/pages/oBXgZxQQsi2vFssObCb6" %}
[MiniServer](/vscode/miniserver.md)
{% endcontent-ref %}

{% content-ref url="/pages/WIRQrinwfMBFVOkiR4Hz" %}
[BoxLang Home Configuration](/vscode/boxlang-home-configuration.md)
{% endcontent-ref %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://boxlang-ide.ortusbooks.com/vscode/keybindings.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.
