Copilot Ask Mode and Context Window | Bondar Academy
Course: Playwright API Testing with TypeScript
Module: AI-Assisted Scripting with Copilot
Instructor: Artem Bondar
Lesson Summary
In this lesson, we explore the functionality of Copilot Chat , which offers three main modes: ask mode , edit mode , and agent mode . Modes Overview Ask Mode: Allows users to ask questions related to their project without modifying any code. It provides answers based on the current context of the application. Edit Mode: Enables users to ask questions and allows Copilot to make modifications to the code, which can then be accepted or rejected. Agent Mode: A more interactive mode where users can assign high-level tasks to Copilot, such as creating configurations or writing tests. Model Selection Users can choose from various models, with Cloud 3.5 being a recommended free option. For better results, users can opt for Copilot Premium , which provides access to advanced models like Cloud 3.7 . Context Management Providing context is crucial for effective responses. Users can: Use the active file as context. Add additional files or folders to the context. Utilize workspace participants to enhance the quality of responses. It's important to balance the amount of context provided to avoid LLM hallucination and ensure relevant answers. For instance, if analyzing test files, only include the test folder in the context. In summary, understanding how to effectively use context in Copilot Chat is essential for maximizing its capabilities while minimizing irrelevant outputs.