This topic explains how to install the VMware Tanzu Developer Tools for Visual Studio Code.
Before installing the Tanzu Developer Tools IDE extension, you must have:
To install VMware Tanzu Developer Tools for Visual Studio Code:
cmd
+ shift
+ P
), run “Extensions: Install from VSIX…”. Select the extension file, tanzu-vscode-extension.vsix
.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.
To configure VMware Tanzu Developer Tools for Visual Studio Code:
Ensure that you are targeting the correct cluster. For more information, see the Kubernetes documentation.
Navigate to the Tanzu settings.
Configure as follows:
your-registry.io/project/tanzu-java-web-app-source
.kubeconfig
is the default namespace.To quickly get you started, use the sample application with the necessary configuration files.
Option 1: Application Accelerator
Set up Application Accelerator.
Search for the Tanzu Java Web App.
Add the required configuration information and generate the application.
Unzip and open in VSCode.
Option 2: Sample repository
Use git clone
to clone the tanzu-java-web-app repository from GitHub.
Go to the Tiltfile
and replace your-registry.io/project
with your registry server and repository.
Note: To start with existing applications, see Code Snippets in the Tanzu Dev Tools Usage documentation.
To uninstall the Tanzu Dev Tools extension:
Navigate to the extensions menu.
Right-click the Tanzu Dev Tools extension and select Uninstall.