Installing Tanzu Developer Tools for VS Code

This topic explains how to install VMware Tanzu Developer Tools for Visual Studio Code (VS Code).

Prerequisites

Before installing the extension, you must have:

If you are an app developer, someone else in your organization might have already set up the Tanzu Application Platform environment.

Docker Desktop and local Kubernetes are not prerequisites for using Tanzu Developer Tools for VS Code.

Install

To install the extension:

  1. Sign in to VMware Tanzu Network and download Tanzu Developer Tools for Visual Studio Code.
  2. Open VS Code.
  3. Press cmd+shift+P to open the Command Palette and run Extensions: Install from VSIX....
  4. Select the extension file tanzu-vscode-extension.vsix.

    Command palette open showing text Extensions: INSTALL FROM VSIX...

  5. If you do not have the following extensions, and they do not automatically install, install them from VS Code Marketplace:

  6. Ensure Language Support for Java is running in Standard Mode. You can configure it in the Settings menu by going to Code > Preferences > Settings under Java > Server: Launch Mode.

    The VS Code settings open to the Extensions > Java section, highlighting the option Java > Server: Launch Mode with that option changed to Standard

    When the JDK and Language Support for Java are configured correctly, you see that the integrated development environment creates a directory target where the code is compiled.

Configure

To configure VMware Tanzu Developer Tools for VS Code:

  1. Ensure that you are targeting the correct cluster. For more informatiom, see the Kubernetes documentation.

  2. Go to Code > Preferences > Settings > Extensions > Tanzu Developer Tools and set the following:

    • Confirm Delete: This controls whether the extension asks for confirmation when deleting a workload.
    • Enable Live Hover: For more information, see Integrating Live Hover by using Spring Boot Tools. Reload VS Code for this change to take effect.
    • Source Image: (Required) The registry location for publishing local source code. For example, registry.io/yourapp-source. This must include both a registry and a project name.
    • Local Path: (Optional) The path on the local file system to a directory of source code to build. This is the current directory by default.
    • Namespace: (Optional) This is the namespace that workloads are deployed into. The namespace set in kubeconfig is the default.

Uninstall

To uninstall VMware Tanzu Developer Tools for VS Code:

  1. Go to Code > Preferences > Settings > Extensions.
  2. Right-click the extension and select Uninstall.

Next steps

Proceed to Getting started with Tanzu Developer Tools for Visual Studio Code.

check-circle-line exclamation-circle-line close-line
Scroll to top icon