/regex101-intellij

Plugin for IntelliJ-based IDEs to open regular expresissions on regex101.com

Primary LanguageKotlinMIT LicenseMIT

Regex101 plugin for IntelliJ-based IDEs

This plugin adds an intention to open regular expressions on regex101.com

Plugin repository Plugin downloads Plugin stars Build status Test coverage MIT license

Installation

Download and install the plugin through your IDE or through the marketplace.

Marketplace

Usage

Show context actions on a regular expression and select "Open RegExp on regex101.com".

Context actions

If the intention doesn't show up, make sure your IDE recognizes the selected text element as a regular expression. If it doesn't, use the Inject language or reference intention and set it to the correct RegExp flavor.

Development

Prerequisites

Build

To compile and package the plugin, simply issue the following command:

$ ./gradlew buildPlugin

This will create a zip located in build/distributions/.

Test

Run the tests as you would in any other gradle project:

$ ./gradlew test

Run

To run the plugin from the command line, the following command can be used:

$ ./gradlew runIde

This will start IntelliJ Ultimate with all necessary plugins loaded. Logs are located at build/idea-sandbox/system/log/idea.log.

Contribute

Use the issue tracker to report bugs or make feature requests.

License

MIT, see LICENSE file.