# vscode的prompt.md和instructions.md 有什么区别？（What is the difference between prompt.md and instructions.md in VSCode?）

**URL:** <https://forum.beginner.center/t/topic/2563>\
**Category:** 🥼实践与临床\
**Created:** [2025 年12 月 31 日 08:41 UTC](https://forum.beginner.center/t/topic/2563 "2025-12-31T08:41:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

作者： ![doggie](https://forum.beginner.center/user_avatar/forum.beginner.center/doggie/32/550_2.png) [@doggie](https://forum.beginner.center/u/doggie)\
发布日期： [2025 年12 月 31 日 08:41 UTC](https://forum.beginner.center/t/topic/2563/1 "2025-12-31T08:41:49Z")

</div>

# prompt.md

copilot对话框里的提示词，在对话的时候使用，比如设置成让它用中文回复消息

如果不设置的话，默认使用英文思考和回复的，你得经常跟他说： **用中文说重说**

 ![image](https://discoursecdn.beginner.center/original/2X/8/8ff24e99713fe72a43fe95f761835fc8ce92f998.png)

更多介绍见 [如何配置vscode copilot prompt提示词](https://forum.beginner.center/t/topic/2561)

# instructions.md

专门针对某个项目、某类语言的提示词

案例如下，规范了ts、tsx语言的生成规范

```auto
---
applyTo: " **/*.ts,** /*.tsx"
---
# Project coding standards for TypeScript and React

Apply the [general coding guidelines](./general-coding.instructions.md) to all code.

## TypeScript Guidelines
- Use TypeScript for all new code
- Follow functional programming principles where possible
- Use interfaces for data structures and type definitions
- Prefer immutable data (const, readonly)
- Use optional chaining (?.) and nullish coalescing (??) operators

## React Guidelines
- Use functional components with hooks
- Follow the React hooks rules (no conditional hooks)
- Use React.FC type for components with children
- Keep components small and focused
- Use CSS modules for component styling

```

更多介绍见 [如何配置vscode copilot项目提示词](https://forum.beginner.center/t/topic/2560)
