JetBrains IDE Integration

Overview

A plugin is available for JetBrains IDEs (IntelliJ, WebStorm, PyCharm, RubyMine, PhpStorm, Android Studio, AppCode, 0xDB, CLion) that allows you to send selected text in an editor pane, or any text entered into a dialog box, to Solve for All. Answers from Solve for All will be displayed in your default web browser. This is useful for looking up documentation, verifying and formatting syntax, and running code snippets.

Installation

You can install the plugin from within your IDE by following these steps:

  • Choose Settings ... the menu option from either the File menu or on OS X, the menu labelled by the product you are using, e.g. IntelliJ IDEA.
  • Select the Plugins label from the left pane.
  • Select the Browse repositories ... button near the bottom of the right pane. A dialog listing plugins should be displayed.
  • In the search box, type "Solve for All", and choose the result labeled Solve for All integration.
  • On the right pane that displays the details for the plugin, choose the button labeled Install plugin. Confirm the dialog box by selecting the Yes button.
  • Restart your IDE to complete the installation.

You can also install the plugin from the JAR file listed on JetBrains' Plugins site (direct download).

Usage

To use the plugin, simply select some text in an editor, and right-click. You should see the option Search with Solve for All ... in the context menu. Choose that option, and a browser window or tab will open up with search results for your selected text. You will be using the account you are currently logged into, you'll be using the answer preferences of your account. (If you are not logged in, you may want to do so.)

Alternatively, you can use the keyboard shortcut Control Shift S followed by A to search for your current selection. If there is no selection, the word your cursor is on, if available, will be used to search. A dialog box will appear that allows you to edit the text before it is sent to Solve for All.

Documentation for the following is available:

Also, you can do the following:

These actions may require that you add the corresponding Answer Generator to you answer preferences. To do that, visit the page for the Answer Generator and select the conditions to activate it.