LaunchDarkly Developer Documentation

Get started in under 30 minutes.
LaunchDarkly provides feature flags as a service for Java · Python · Ruby · Go · Node.js · PHP · .NET. Control feature launches -- who sees what and when -- without multiple code deploys. Easy dashboard for phased rollouts, targeting and segmenting.
Need more help? write us at support@launchdarkly.com

Get Started    Documentation

Visual Studio Code

The LaunchDarkly VSCode extension makes it easy to interact with feature flags from within VSCode.

With the extension, you'll get the ability to:

  • See a tooltip with feature flag details when you hover over a feature flag key in your source code
  • Autocomplete feature flag keys
  • Open feature flags in LaunchDarkly (Default keybinding: ctrl+alt+g/⌘+alt+g)

Extension Settings

You can configure the extension with the following settings:

Setting
Description
Default Value

launchdarkly.sdkKey

Your LaunchDarkly SDK key. Required.

Find in Account Settings

launchdarkly.accessToken

Your LaunchDarkly API access token. Required.

Find in Account Settings

launchdarkly.project

Your LaunchDarkly project key, should match the provided SDK key. Required.

Find in Account Settings

launchdarkly.env

Your LaunchDarkly environment key, should match the provided SDK key.

Production

launchdarkly.baseUri

The LaunchDarkly base uri to be used. Optional.

launchdarkly.streamUri

The LaunchDarkly stream uri to be used. Optional.

launchdarkly.enableHover

Enables flag info to be displayed on hover of a valid flag key.

true

launchdarkly.enableAutocomplete

Enable flag key autocompletion.

true

Here's an example setting configuration with quick suggestions enabled:

{
  "launchdarkly.accessToken": "api-xxx",
  "launchdarkly.sdkKey": "sdk-xxx",
  "launchdarkly.project": "default",
  "launchdarkly.env": "production",
  "editor.quickSuggestions": {
    "other": true,
    "comments": false,
    "strings": true
  },
}

You can find more information and install the VS Code extension at https://ld.click/LDVisualStudioExtension


Visual Studio Code


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.