An open API service indexing awesome lists of open source software.

https://github.com/launchdarkly/ld-intellij

LaunchDarkly IDE Plugin for IntelliJ based editors
https://github.com/launchdarkly/ld-intellij

launchdarkly-sdk-component managed-by-terraform

Last synced: 1 day ago
JSON representation

LaunchDarkly IDE Plugin for IntelliJ based editors

Awesome Lists containing this project

README

          

# LaunchDarkly IntelliJ IDEA plugin

![Build](https://github.com/launchdarkly/ld-intellij/workflows/Build/badge.svg)

Interact with your LaunchDarkly feature flags directly in your IDE.

- Autocomplete feature flag keys
- View a tooltip with feature flag details when you hover over a flag key in your source code
- Open to specific feature flags in LaunchDarkly
- View a list of feature flags and their settings in the LaunchDarkly tool window
- Update a feature flag's targeting status and default rule and value when targeting is on or off

[Available in the JetBrains Marketplace](https://plugins.jetbrains.com/plugin/15159-launchdarkly)

## Installation

- Using IDE built-in plugin system:

Preferences > Plugins > Marketplace > Search for LaunchDarkly >
Install Plugin

- Manually:

Download the [latest release](https://github.com/launchdarkly/ld-intellij/releases/latest) and install it manually
using
Preferences > Plugins > ⚙️ > Install plugin from disk...

## Setup

- Generate a [LaunchDarkly Personal Access Token](https://docs.launchdarkly.com/home/account-security/api-access-tokens) with a writer role (if toggling flags). Example policy is below:

```
[
{
"effect": "allow",
"actions": ["viewProject"],
"resources": ["proj/*"]
},
{
"effect": "allow",
"actions": [
"updateOn",
"updateFallthrough",
"updateOffVariation"
],
"resources": ["proj/*:env/*:flag/*"]
}
]

```

- Under Preferences > LaunchDarkly add the Access Token and then click Apply.
A list of projects and environments
will populate if the token has the correct permissions. The `Environment` list will automatically update based on the `Project` selected.