prompt.md
copilot对话框里的提示词,在对话的时候使用,比如设置成让它用中文回复消息
如果不设置的话,默认使用英文思考和回复的,你得经常跟他说:用中文说重说
更多介绍见 如何配置vscode copilot prompt提示词
instructions.md
专门针对某个项目、某类语言的提示词
案例如下,规范了ts、tsx语言的生成规范
---
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项目提示词
