Skip to content

Latest commit

 

History

History
92 lines (53 loc) · 5.47 KB

installation.md

File metadata and controls

92 lines (53 loc) · 5.47 KB

Installing Tanzu Dev Tools for Visual Studio Code

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

On this page

Prerequisites

Note: The Tanzu Developer Tools extension currently only supports VS Code, Mac OS, and Java Applications.

Before installing the Tanzu Developer Tools IDE extension, you must have:

Note: If you are an application developer, the Tanzu Application Platform environment may have been set up by someone else in your organization. Contact the respective group within your organization to determine if a Tanzu Application Platform environment already exists.

Installation

To install VMware Tanzu Developer Tools for Visual Studio Code:

  1. Download Tanzu Developer Tools for Visual Studio Code from the Tanzu Network.

  2. Open VS Code.

    Option 1:

    1. From the Command Palette (cmd + shift + P), run "Extensions: Install from VSIX...".

    2. Select the extension file tanzu-vscode-extension.vsix.

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

    Option 2:

    1. Select the Extensions tab: The extensions tab icon which is a square cut in fourths with the top-right fourth moved away from the other three

    2. Select Install from VSIX… from the overflow menu.

    The VS Code interface showing the extensions tab open, the overflow menu in the extensions tab open, and the "Install from VSIX..." option highlighted

  3. The Tanzu Developer Tools extension will install the Debugger for Java, Language Support for Java(™) by Red Hat, and YAML extensions if they are not previously installed. The Tanzu Developer Tools extension depends on these additional extensions to function.

    Note: If the extensions do not automatically install, manually install the following extensions from the VS Code Marketplace:

  4. Ensure Language Support for Java is running in Standard Mode.

    This can be configured in the Settings menu 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.

Configuration

To configure the VMware Tanzu Developer Tools extension for Visual Studio Code:

  1. Ensure that you are targeting the correct cluster. See Configure Access to Multiple Clusters in the Kubernetes documentation.

  2. Select File -> Preferences -> Settings -> Extensions -> Tanzu and set the following:

    • Confirm Delete (required): Controls whether the extension should ask for confirmation when deleting a workload.
    • Source Image (required): Destination for an image containing the source code to be published. For example, your-registry.io/project/tanzu-java-web-app-source.
    • Local Path (optional): Path on the local file system to a directory of source code to build (defaults to current directory).
    • Namespace (optional): Namespace that workloads are deployed into (defaults to namespace set in kubeconfig).

Uninstallation

To uninstall the Tanzu Dev Tools extension:

  1. Navigate to the extensions menu: The extensions tab icon which is a square cut in fourths with the top-right fourth moved away from the other three
  2. Right-click the Tanzu Dev Tools extension and select Uninstall.

What's Next

Proceed to the Getting Started page.