I wrote a Chrome Extension (Gitpod Window). Here is what I learned.

Jerome Wu
ITNEXT
Published in
4 min readMar 23, 2020

--

Gitpod is an online IDE for GitHub and GitLab, it is great and makes my life easier when there is not enough resource in my laptop. But as a VIM user it is pretty annoying when I hit Ctrl+w (which is commonly used to navigate between different VIM window), the whole Gitpod tab just close and I have to reopen it again.

That’s why I start to work on a Chrome Extension (Gitpod Window) to make the overall experience of using Gitpod even better. The requirements I listed are:

  1. When user click the extension icon on a GitHub or GitLab page, opens Gitpod workspace in a popup Chrome window
  2. Disable Chrome shortcuts

As I have almost no experience in building a Chrome Extension, I wrote this story to record the process and hope it can help newbies like me. 😃

Get Started with Chrome Extension

Google provides a good official tutorial here: https://developer.chrome.com/extensions/getstarted

Quick summary for key components:

  • manifest.json: Provides important information
  • Background Script: Extensions monitor events in their background script, then react with specified instructions

--

--

Writer for

A technology enthusiast wishes to make the world better and better. Maintainer of tesseract.js and ffmpeg.wasm