﻿---
title: "/ide 只带这一轮，/ide-context 才是自动共享"
summary: "/ide 把当前打开的文件和选区塞进下一轮提示。/ide-context 开关之后是否自动带上。两套不要混。"
category: commands
level: starter
surfaces: [cli, ide, app]
tags: ["/ide", "/ide-context", "IDE"]
canonical: /tips/ide-once-vs-ide-context/
---

# /ide 只带这一轮，/ide-context 才是自动共享

/ide 把当前打开的文件和选区塞进下一轮提示。/ide-context 开关之后是否自动带上。两套不要混。

```text
/ide 根据当前选区解释这个失败测试
/ide-context
```

| 命令 | 作用 |
| --- | --- |
| `/ide` | 一次性附上 IDE 打开的文件、当前选区；可跟一句说明 |
| `/ide-context` | 开关自动共享。桌面应用和 IDE 对着同一项目时，合成器会带上编辑器上下文 |

要它看光标所在的函数，用 `/ide`。不想把桌面提示污染成「所有打开的标签」，把 `/ide-context` 关掉。扩展里的 `chatgpt.*` 键（队列/转向、审查内联）仍写在编辑器设置，不进 `config.toml`。

## 来源

- [OpenAI · Developer commands](https://learn.chatgpt.com/docs/developer-commands)
- [OpenAI · Developer settings](https://learn.chatgpt.com/docs/developer-settings)
