Skip to content

danielkurecka/intellij-extra-actions

Repository files navigation

Extra Actions for IntelliJ

This is a plugin for IntelliJ based IDEs (IDEA, PhpStorm, PyCharm, etc.) and it provides some additional actions:

Split Selection into Lines

Adds a new caret at each line of the selection, it works the same way as in Sublime Text. Recommended shortcut: Ctrl+Shift+L

Split Selection

Splits selection into multiple carets by custom character(s). Recommended shortcut: Ctrl+Shift+Alt+L

Toggle Quotes

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+'

Break Quotes

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+.

Run This

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

Debug This

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

Select in Project

Shows the current file in the Project tool window. Recommended shortcut: Ctrl+Shift+Y

Search Online

Searches the selection or the word at the caret via Google. Recommended shortcut: Shift+F1

Move Caret to Next/Previous Paragraph

Moves the caret to the first empty line. Recommended shortcut: Ctrl+Down/Up

Move Caret to Next/Previous Paragraph with Selection

Moves the caret to the first empty line while keeping the selection. Recommended shortcut: Ctrl+Shift+Down/Up

Installation

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.

Developing

The plugin currently uses the old "DevKit" approach.

Step-by-step instructions to develop/compile the plugin from source:

  1. Clone this repository or your fork:

    git clone https://github.com/danielkurecka/intellij-extra-actions
  2. Download external libraries:

    cd extra-actions
    ./external/download.sh
  3. Open the cloned directory in IntelliJ Community Edition.

  4. Install the "Plugin DevKit" plugin: Go to File | Settings | Plugins and install the "Plugin DevKit" plugin.

  5. 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.
  6. 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.
  7. 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.
  8. 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

License

Apache 2.0

About

Plugin for IntelliJ which adds some missing actions.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages