Skip to content

Google Chrome extension that automatically adjusts tab indentation on GitHub (and Bitbucket!)

License

Notifications You must be signed in to change notification settings

ezekg/chrome-github-auto-tab-indent

Repository files navigation

GitHub Auto Tab Indent

Google Chrome extension that automatically adjusts tab indentation when viewing source code on GitHub (and Bitbucket!). Looking at source code that uses tabs on these sites usually looks like this,

image

but with this plugin, source code looks like this,

image

As you can see, by default, browsers render tabs as 8 (!!!) spaces, but this plugin corrects that by making them render with only 2 spaces (or whatever you specify). Makes reading code on GitHub/Bitbucket a lot more enjoyable, especially when it's in a language like Go, where the standard is to use tabs over spaces.

Installation

image

  1. Clone this repo to any folder
  2. Navigate to chrome://extensions/ in Google Chrome
  3. Check "Developer Mode" in the upper right
  4. Click "Unload Packed Extension..." and select the cloned repo folder
  5. Click "Options" and select your tab indentation level
  6. Done! 🎉 🎈 🎊 🎉 🎈 🎊

About

Google Chrome extension that automatically adjusts tab indentation on GitHub (and Bitbucket!)

Resources

License

Stars

Watchers

Forks

Packages

No packages published