Copilot Code Completion | Bondar Academy
Course: Playwright API Testing with TypeScript
Module: AI-Assisted Scripting with Copilot
Instructor: Artem Bondar
Lesson Summary
In this lesson, we explore how Copilot code completion functions within a project. Here are the key points discussed: Getting Started Ensure Copilot and Copilot Chat are installed and running. Code completion is activated automatically upon installation. Code Suggestions When typing in your document, Copilot provides suggestions based on context: Typing a keyword prompts Copilot to suggest relevant imports or functions. For example, placing the cursor and typing may yield suggestions like import API request context or get articles test . Limitations of Copilot Despite its capabilities, Copilot has notable limitations: It may suggest imports or files that do not exist in your project, leading to confusion. Common mistakes include incorrect syntax and variable handling. Personal Opinion The instructor likens Copilot's assistance to a puppy that is enthusiastic but ultimately unhelpful. While some users find it useful for boilerplate code, the instructor recommends disabling Copilot code completion due to its frequent inaccuracies. Disabling Copilot Code Completion To disable this feature: 1. Click on the Copilot icon at the bottom of the screen. 2. Unselect both checkboxes to disable code completion. In conclusion, while Copilot offers some assistance, the instructor suggests focusing on Copilot Chat for a better experience. Experimentation is encouraged to find what works best for you.