
I pressed enter and invoked suggestions from GitHub Copilot by typing a curly brace. Permissions for the extension are: storage, tabs, browsingData I described my desired file: Manifest for Chrome extension that clears browser cache. 🧑🏾💻 Inside a folder in my IDE, I created a file called manifest.json. style.css determines the way the HTML file should be displayed in the browser, including font, text color, background, etc. popup.html is the interface, including layout, structure, and content. These files make up the visual of your pop-up window.
TETRIS CHROME EXTENSION CODE
This file is what determines the behavior of that pop-up and contains code for handling user interactions with the pop-up window. When users click on your extension icon in their Chrome toolbar, a pop-up window will appear. Manifest as a proper noun is the name of the Google Chrome API. Metadata about your extension, like the name and version, and permissions. To save you some time, here’s a chart that briefly defines the purpose of these files: Then, it shared an example of a Chrome extension file structure. 💻 GitHub Copilot gave me general steps for creating an extension-from designing the folder structure to running the project locally in Chrome. 🧑🏾💻 Using the chat window, I asked GitHub Copilot, “How do I create a Chrome extension? What should the file structure look like?” If you don’t have GitHub Copilot chat, sign up for the waitlist, and pair GitHub Copilot with ChatGPT for now. I also have access to an early preview of GitHub Copilot chat, which is what I used when I had a question. To get started, you’ll need to have GitHub Copilot installed and open in your IDE.
TETRIS CHROME EXTENSION HOW TO
How to build a Chrome extension with GitHub Copilot

As a developer advocate at GitHub, I decided to put GitHub Copilot to the test, including its upcoming chat feature, and see if it could help me write an extension for Google Chrome to clear my cache. I’ve built a rock, paper, scissors game with GitHub Copilot but never a browser extension. For the first time ever, I built a browser extension and did it with the help of GitHub Copilot.
