JetBrains IDE Integration
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.
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.
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:
- JDK classes and methods (using the JDK Inline Docs Answer Generator)
- Python Standard Library classes, methods, and functions (using the Python Library Documentation Answer Generator)
- Ruby core and standard library classes, modules, methods, and other code objects (using the Ruby Documentation (Inline) Answer Generator)
- HTML elements (using the HTML Element Inline Reference Answer Generator)
- CSS properties, at-rules, pseudo-elements, etc. (using the CSS Documentation Answer Generator)
Also, you can do the following:
- Verify and format JSON with the JSON Formatter Answer Generator
- Verify and format XML with the XML Formatter Answer Generator
- Preview a HTML fragment with the HTML Preview Answer Generator
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.