Skip to content

Account Settings

When signed in, click your profile picture in the upper-right corner to view the account settings dropdown. If you're already in a review, click the Reviewable icon in the upper-left corner first to reveal your profile picture.

Here, you can manage your global settings and customize your Reviewable environment. This chapter explains each setting from top to bottom.

reviewable account settings

Custom diff font

You can customize the font used in all the diffs. The font must be monospace, match the exact font name, and already exist on your machine. Specify the font size in CSS format, such as 10pt, 1.2em, or 90%. If the font can't be loaded, Reviewable will fall back on its built-in default.

Custom stylesheet

You can point to a custom stylesheet that you want to apply to all diffs. Reviewable uses highlight.js, so you might prefer to use one of those predefined styles that can be found in their styles directory.

For example, to use the GitHub style, set the URL to https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.2/styles/github.min.css.

You can also write your own custom styles by following the highlight.js CSS class reference.

DANGER

Make sure that your stylesheet is served as text/css. If your host doesn't set a Content-Type header automatically, you can use https://raw.githack.com or another similar service to set the MIME type for you.

There are a few extra styles for highlighting tabs, trailing whitespace, and lack of a final newline that can be customized as well:

css
.tab, .no-newline, .trailing {
  color: #D95C5C;
}

.tab:before {
  content: "\00bb\00a0\00a0\00a0";
}

.no-newline:before {
  content: "\00a0\20e0\23ce";
}

When viewing a diff in two-column mode, Reviewable only highlights the changed characters by default. If you prefer full-line red and green backgrounds similar to GitHub, you can add the styles from this example.

See more custom stylesheet snippets in the Tips and Tricks section.

Reviewable lets you open files directly in your preferred external editor. Select your editor from the dropdown and provide the file path to your local git repos.

custom line editor links

You can open a file by clicking its name in a file diff panel header and selecting Open in editor . To jump to a specific line, use the  line # dropdown in the upper-right corner of any discussion.

line editor link in discussion

TIP

You can open files in your external editor from the file matrix pane by holding down or Ctrl + Alt or when clicking a file name. More on this here.

Your editor must support a custom URL scheme for linking to files to use this feature. Reviewable assumes that /directory/with/repos is the absolute path to the directory where your git repos live, and also that each repo directory is named the same as its repo.

There are a few caveats for specific editors:

You can specify a custom editor link template by choosing the Custom option in the editor dropdown. To base your custom template on one of the available editor templates, first select that template in the dropdown and then select Custom. The file path to your local git repos will automatically be carried over when switching between editors.

For example, if you initially select VS Code and then select Custom, the following template will populate the template field:

vscode://file//directory/with/repos/{{repo}}/{{path}}:{{line}}

You can use these variables in your custom URL template:

  • {{owner}} — the repo owner (or organization) username of the head (source) branch.
  • {{repo}} — the repo name of the head (source) branch.
  • {{baseOwner}} — the repo owner (or organization) username of the base (target) branch.
  • {{baseRepo}} — the repo name of the base (target) branch.
  • {{pr}} — the pull request number.
  • {{headBranch}} — the name of the head (source) branch.
  • {{baseBranch}} — the name of the base (target) branch.
  • {{path}} — the full path to the file (does not start with /).
  • {{sha}} — the commit sha of the latest revision in this review.
  • {{line}} — the line number in the latest revision of the file that best represents the original context in which the comment was made.
  • {{viewLine}} — the line number in the revision in which the discussion currently appears. This is the number that appears in the top-right corner of the discussion. Not available for code blocks.

Typically, you'll want to open the latest version of a file into the editor. In this case, use {{line}} rather than {{viewLine}}. If you need any other variables for your template, please let us know.

Custom key bindings

You can customize the key bindings for common commands, and add new ones for commands that aren't bound by default. First, make a copy of the default bindings file and put it somewhere accessible on the web (such as a gist). All available commands are listed in the file. You can use any key combos supported by Mousetrap. If your favorite command isn't listed, please open an issue so we can add it.

When you're done, point Reviewable to your custom bindings file by entering its URL in the "Custom review page keyboard shortcuts URL" field in the account settings dropdown. If you're using a gist, make sure to get the “raw” URL, and consider removing the commit SHA from the path to always point to the latest version.

Your bindings will be loaded and applied right away, and the keyboard shortcuts cheatsheet (type ? in Reviewable) will automatically update to reflect them. Be sure to check the browser's console if they don't appear to work since any errors will appear there. To load any updates to your file, either reload the page or make a no-op edit to the URL field.

Visual tweaks

Click the Animated transitions toggle to turn animated transitions on and off throughout the UI.

Adjust contrast

Use the Contrast slider to adjust the UI contrast. Currently this only affects the red and green diff highlighting in reviews, but may be used for other UI elements in the future as well.

Color scheme

You can switch between dark mode, light mode, or match your operating system's default display theme using the Color scheme radio buttons. By default, Reviewable will match your operating system's light or dark mode setting. Changing the color scheme in any Reviewable tab will immediately update it across all tabs and windows.

Accessibility

You can enable color replacement (colorblind mode) to replace all shades of red and green across the app, making it easier to distinguish between the two in diffs. In single column diff layouts, plus and minus icons are also placed to the right side of the panel to further differentiate between changes.

To use colorblind mode:

  • Turn on color replacement.
  • Click the left swatch to replace red, and the right swatch to replace green.
  • The default colors are optimized for users with deuteranopia. However, you can customize the colors to suit your needs.

To reset any custom colors back to the default red or green, click the "x" that appears after setting each custom color.

TIP

When setting replacement colors, don't forget that you have the contrast slider at your disposal too. This primarily controls diff colors (and differentiation icons) and can help achieve a balanced UI when setting color replacements.

GitHub API background usage cutoff

You can set an hourly GitHub API usage cutoff to limit Reviewable's background requests for your account on its server. This applies a maximum across all types of quota but is typically most relevant for core API quota. This does not affect interactive usage of Reviewable.

This setting can be helpful if you’re a member of an organization subscribed to GitHub Enterprise Cloud but also use personal access tokens or the gh command line tool. GHEC grants OAuth applications such as Reviewable a higher quota, but doesn’t extend this benefit to personal tokens, so it’s possible for Reviewable to unknowingly exhaust your quota. To prevent this, set the cutoff to a number below your personal token’s limit, e.g. 4000.

GitHub authorizations granted

This is a read-only list of all the GitHub OAuth scopes you've granted to Reviewable so far. It can be useful to confirm the extent of permissions granted or when debugging GitHub API issues.