Important
Microsoft Copilot uses AI and might make mistakes or misinterpret instructions. Review requests and results carefully, especially before Copilot Code runs commands, connects to the internet, changes files, or before you share personal information. You're responsible for actions Copilot takes on your behalf. By using Copilot, you agree to the Terms of Use. For more information, see the Microsoft Privacy Statement.
Microsoft Copilot Code for personal accounts is currently in Preview.
This information relates to a prerelease product that may be substantially modified before it's released. Microsoft makes no warranties, expressed or implied, with respect to the information provided here.
Describe the software you want in natural language. Focus on the outcome, the people who use it, and what they need to do.
Describe what you want to build
Copilot Code turns a plain-language description into working software. Describe the outcome you want and who it's for, rather than the code. You can build:
- Apps and interactive tools, such as trackers, forms, and calculators.
- Dashboards and data views.
- Static websites and landing pages.
- Data transforms and scripts.
The following examples show the kind of prompt that works well.
| Goal | Example prompt |
|---|---|
| Dashboard | Build a dashboard that tracks weekly spending by category. |
| Tracker | Create a reading tracker with an Add book button and a list of books. |
| Website | Create a website for a neighborhood event with a schedule and sign-up form. |
Start with the main outcome. You can add features and adjust the design after Copilot Code creates the first version. When Copilot Code needs more detail, it asks clarifying questions before it builds. Answer them to guide the result.
Tip
Start simple. Describe the core of what you want first, then add features as you go.
Add files and information
You can give Copilot Code information to use in the project:
- Select the plus sign (+) to upload files.
- Drag and drop files onto the task input.
- Paste text or data directly into your request.
- Open an existing folder on your device for a local project.
Supported inputs include CSV files, spreadsheets, images, documents, PDFs, and presentations.
Where the project runs
Copilot Code runs a project on your device with a folder and files on your device.
Choose a working mode
Working modes govern how Copilot approaches the work. Permissions govern which actions it can take.
You can work with Copilot Code using one of these modes:
- Interactive (default): Step-by-step collaboration. Work with Copilot conversationally, providing direction and feedback as the task progresses. This is a collaborative workflow; “step-by-step” does not mean that every individual action requires a separate approval.
- Plan: Plan first, then execute. Ask Copilot to develop a plan before implementation, so you can review the proposed approach, question decisions, and refine the plan before changes are made. This mode is useful when you want to align on scope or design before starting implementation.
- Automatic: Run end-to-end with fewer interruptions. Let Copilot work through the task with less ongoing direction and fewer interruptions. This mode is intended for delegating a defined task rather than guiding the approach conversationally.
Note
Automatic mode doesn't grant unrestricted access or eliminate all approval requests. Applicable approval settings still govern protected actions. To learn more about approvals, see Review an approval request and Use Always allow.
Choose a model
You might select one model over another because different models are better suited for different tasks. Some models prioritize speed and work well for quick, everyday requests, while others provide stronger reasoning for more complex work. Models can also differ in cost, the amount of information they can work with at once, and how well they handle tasks such as writing, coding, analysis, or summarization. The model picker lets you select the model that best fits what you’re trying to accomplish.
Use the model picker in the task input to choose an available model, or leave it set to Auto so Copilot Code can choose. The models available in the preview can change.
Follow progress and preview the result
After you send your request:
- Copilot Code might ask questions about the type of project, its features, or its design.
- Progress updates show the steps Copilot Code is taking.
- The canvas shows a live preview for supported websites and apps.
- The code view shows the files Copilot Code created and lets you edit them.
Preview support depends on the project type and device. Some projects don't have a visual preview.
Refine the project
Continue the conversation to change the project.
- Describe one focused change, such as adding a feature, changing the layout, or fixing a problem.
- Send your request and review the updated preview or files.
- Continue refining your project as needed.
If you want to undo a direction, ask Copilot Code to return to an earlier version. If a build or command fails, Copilot Code explains the problem and can try to correct it.
What data Copilot Code uses and stores
Copilot Code might use and store limited data locally on your device to perform and review tasks. Your prompts and Copilot Code's responses are saved so you can review past sessions, and so Copilot Code can reference your past sessions (including your preferences and other details you share) for future sessions. You can delete a session or project if you don't want its data stored or used.
Don't provide sessions with access to any confidential or sensitive personal data that you don't want Copilot Code to use for performing activities on your behalf. This data includes information that might reveal, for example, your race, religion, sexual orientation, or health status.