{% include “docs/reference/tools/editors/vscode/_common/_vscode_header.md” %}
The Fuchsia extension for VS Code{: .external} provides support for debugging Fuchsia devices, logging, and syntax highlighting. This extension is Fuchsia’s official extension and can be used with the source tree and the SDK.
Before you begin:
For more information on configuring Vs Code, see VS Code.
The extension automatically detects the appropriate settings for each workspace that you use, including the location of relevant tools such as ffx. If these settings are incorrect or not set automatically, follow the section below.
{SDK}
Note: For more information about the Fuchsia SDK and how to configure your environment, see SDK fundamentals.
ffx
directory (for example, ~/fuchsia/getting-started/tools/ffx
).If there is no Fuchsia device that is running, including the emulator, you will see the following in the Output tab:
Running: ffxPath target,list,--format,json exit: 2: null
{Source Tree}
Note: For more information about the Fuchsia source tree and how to configure your environment, see source tree fundamentals.
ffx
directory (for example, ~/fuchsia/tools/ffx
).If there is no Fuchsia device that is running, including the emulator, you will see the following in the Output tab:
Running: ffxPath target,list,--format,json exit: 2: null
You have successfully configured the Fuchsia extension! To see more information on how to use the Fuchsia extension, see Using the Fuchsia extension for VS Code.