Octohint is a browser extension which adds IntelliSense hint feature to GitHub.
Install it from Chrome Web Store:
https://chrome.google.com/webstore/detail/octohint/hbkpjkfdheainjkkebeoofkpgddnnbpk
Manual installation:
Go to release page, find chrome.zip
file, download and unpack it.
Make sure your version of Firefox supports web extensions. The installation is the same as Manual installation of Chrome.
Use this extension: Install Chrome Extensions to install Octohint from Chrome Web Store
-
Download this zip file, double click to unpack it in Finder
-
At top menubar, click Develop -> Show Extension builder, then click '+' on the bottom left corner of popup window, choose 'Add Extension', then select unpacked folder on step 1.
-
Click 'Install' button on the top right, done.
With Octohint installed, when you view code at GitHub (For example this demo), you'll get features as follows:
- Mouse Hover: Show information of current token
- Left Click: Show all references of current token
- [⌘] + Click: Go to definition of current token (For Windows and Linux user, use [Ctrl] instead)
Octohint supports all languages. There are two strategies:
- IntelliSense hint: TypeScript, JavaScript, CSS, LESS, SCSS
- Simple token matching: All other languages
It is because browser only runs JavaScript. But with help of WebAssembly, maybe we could bring other languages(like Go/Rust)' IntelliSense analysis to browser! It's still in research
Support GitHub, GitLab and Bitbucket. Since GitLab CE has many versions, I'm not sure it works correctly on every version. If you find some bugs you could submit an issue.
If GitHub/GitLab/Bitbucket you are using is hosted on different site, go to chrome://extensions, click options of Octohint, then add match patterns of your site, like https://www.example.com/*
.
Octohint is a pure client thing. All code analysis are performed at your browser, which means your code and actions log like click, mousemove will never be sent to any server.
Feel free to use it at your private GitHub/GitLab/Bitbucket.
- Octoview: The missing preview feature for GitHub
MIT