This is a plugin for IntelliJ based IDEs (IDEA, PhpStorm, PyCharm, etc.) and it provides some additional actions:
Adds a new caret at each line of the selection, it works the same way as in Sublime Text. Recommended shortcut: Ctrl+Shift+L
Splits selection into multiple carets by custom character(s). Recommended shortcut: Ctrl+Shift+Alt+L
Switches between single and double quotes inside a string literal. It works in most languages and with multiple carets. For JavaScript/CoffeeScript, the "JavaScript Intention Power Pack" plugin must be enabled. Recommended shortcut: Ctrl+'
Splits a string literal at the caret position and adds concatenation operators with the caret between them. For example:
var a = "Hello |world.";
will become
var a = "Hello " + | + "world."
.
It works in most languages and with multiple carets.
Recommended shortcut: Ctrl+.
This action is equivalent to right-clicking a file and selecting "Run". It bypasses any dialogs and immediately runs the current file/context. Recommended shortcut: F5
This action is equivalent to right-clicking a file and selecting "Debug". It bypasses any dialogs and immediately debugs the current file/context. Recommended shortcut: Shift+F5
Shows the current file in the Project tool window. Recommended shortcut: Ctrl+Shift+Y
Searches the selection or the word at the caret via Google. Recommended shortcut: Shift+F1
Moves the caret to the first empty line. Recommended shortcut: Ctrl+Down/Up
Moves the caret to the first empty line while keeping the selection. Recommended shortcut: Ctrl+Shift+Down/Up
Inside the IDE go to Settings | Plugins, click Marketplace and search for 'Extra Actions'.
Note about shortcuts No keyboard shortcuts are set by default to avoid conflicts. You can easily configure them by going to: Settings | Keymap | Plugins | Extra Actions.
The plugin currently uses the old "DevKit" approach.
-
Clone this repository or your fork:
git clone https://github.com/danielkurecka/intellij-extra-actions
-
Download external libraries:
cd extra-actions ./external/download.sh
-
Open the cloned directory in IntelliJ Community Edition.
-
Install the "Plugin DevKit" plugin: Go to File | Settings | Plugins and install the "Plugin DevKit" plugin.
-
Set up the SDK:
- Go to File | Project Structure | Project.
- In the SDK dropdown, choose IntelliJ Community Edition SDK.
- If no SDK is available:
- Select Add IntelliJ Platform Plugin SDK from disk....
- Choose the directory of your IntelliJ Community Edition installation.
-
Build the project:
- To build the project, go to Build | Build Project.
- To run the plugin, go to Run | Run 'Plugin', which will run the plugin within your IntelliJ Community Edition.
-
Run the plugin in another IntelliJ IDE:
- Go to Run | Edit Configurations | Plugin
- For the JRE, select the installation directory of your target IntelliJ IDE.
-
Create the plugin JAR file:
- Go to Build | Prepare Module 'extra-actions' for Deployment.
- This will generate the plugin JAR file, which can be manually loaded via Settings | Plugins | Install Plugin from Disk
Apache 2.0