• HOME
  • INTEGRATIONS
  • SDKS
  • GUIDES
  • API DOCS
No results for ""
EXPAND ALL
CLOSE
launchdarkly.com

EDIT ON GITHUB

Visual Studio Code (VSCode)

Read time: 1 minute
Last edited: Feb 24, 2020

Overview

This topic explains how to use the LaunchDarkly VSCode extension 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)

Installing the VSCode extension

To install the VSCode extension, visit the Visual Studio Marketplace.

Extension settings

On installation of the LaunchDarkly extension, VSCode prompts you to configure the extension, including selecting a LaunchDarkly project and environment for your workspace.

To reconfigure the extension, run the "LaunchDarkly: Configure" command from the command pallete.

To learn about additional settings, read the extension's GitHub repository.

*Note: If you use quick suggestions to autocomplete words, LaunchDarkly autocomplete functionality requires the editor.quickSuggestions.strings setting to be enabled. Otherwise, you'll need to press Ctrl+Space (default binding) to see your flag key suggestions.

Here's an example configuration with quick suggestions enabled:

1{
2 "editor.quickSuggestions": {
3 "other": true,
4 "comments": false,
5 "strings": true
6 },
7}