Editor Plugins

Other Integrations

search

IntelliJ Platform

This extension for IntellJ-based IDEs gives Cacher users the ability to perform popular actions on their personal and team snippet libraries.

Prerequisites

Getting started

  1. Sign up for a Cacher account at: app.cacher.io
  2. To install the Cacher plugin for your IntelliJ IDE:
    1. Open your IDE preferences. info_outlineLearn more about managing plugins.
    2. Select Plugins from the side menu.
    3. Click on the Marketplace tab.
    4. Search for Cacher.
    5. Click the Install button for the Cacher plugin.
    Install Cacher
  3. You will be prompted to setup Cacher by entering your API token and key. You can find them here.
    API key and token
    Setup dialog
  4. Cacher will then load your snippets and make your code available to search.

Cacher main menu

Cacher adds an item to the top menu of your IDE. From here you can access any of the plugin's commands.

Cacher main menu

Finding snippets

Via the ToolWindow

  1. Cacher adds an entry to the bottom toolbar of your IDE. Click on it to open the Cacher ToolWindow.
  2. From here, select a library and/or enter a search query to filter your snippets.
  3. Double-click the snippet item in the list or use the Insert button on a snippet file to insert the code into your active editor.
Cacher Toolwindow

Via find snippet dialog

Shortcut: Cmd/Ctrl Alt F

  1. Click the Cacher Main Menu item or use the keyboard shortcut.
  2. From the Find Snippet Dialog, select a library and/or enter a search query to filter your snippets.
  3. Double-click the snippet item in the list or use the Insert button on a snippet file to insert the code into your active editor.
Find snippet dialog

Creating snippets

Shortcut: Cmd/Ctrl Alt C

Via create snippet dialog

  1. Without selecting any text, click the Cacher Main Menu item and select Create Snippet... to open the create snippet dialog.
  2. Enter a Title and an optional Description.
  3. Enter a Filename with a file extension (used for syntax highlighting).
  4. From the footer, select a Library and an optional Label.
  5. If your team enforces code reviews, you'll also need to pick a Code Reviewer.
  6. Click Save.
Create snippet dialog

Via text selection

  1. With text selected in your active editor, right-click the selection to bring up the context menu.
  2. Select Create Snippet from Selection....
  3. Follow steps 4-6 from the Via create snippet dialog instructions above.
Create from selection

Via active editor tab

  1. With file open and no selected text, right-click the file's editor tab to open up the context menu.
  2. Select Create Snippet from File....
  3. Follow steps 4-6 from the Via create snippet dialog instructions above.
Create from file

Refresh snippets

Reload your Cacher snippets once you've made a change to your snippets outside of your IDE. You can do this:

Refresh snippets

Sign in as different user

To sign-out from the current Cacher user and in as a different user.

  1. Click the Cacher Main Menu item.
  2. Select Setup...

Change keyboard shortcuts

You can modify the shortcuts for the Find Snippet and Create Snippet commands to suit your personal needs. Configure them using the IntelliJ Keymap preferences.

On this page