Install the AMPscript Core Extension
The AMPscript Core extension is a helpful tool for creating and testing your AMPscript content. This page contains instructions for installing and using the extension.
Before you can install the AMPscript Core Extension, complete these steps:
- Install Visual Studio Code from https://code.visualstudio.com/.
- Install the .NET SDK from https://dotnet.microsoft.com/en-us/download/dotnet/7.0.
- Install git.
- On Windows, you can download Git from https://git-scm.com/download/win.
- On macOS, open the Terminal application, and then enter
git --version
. Follow the instructions for installing the Command Line Developer Tools. Alternatively, you can use a third-party package manager such as Homebrew to install Git. - Git is installed by default in most popular Linux distributions. If it isn't already installed in your distribution, see the documentation for your distribution's package manager for installation instructions.
The Git repository for the AMPscript Core extension contains example files that illustrate how the extension works.
- In a terminal window, enter
git clone https://github.com/SalesforceLabs/ampscript-core.git
, and then press Enter.
The extension isn't available on the Visual Studio Code Marketplace. You can install the extension manually by downloading a Visual Studio extension file (VSIX) from the project's Github page.
- Download the latest version of the VSIX file from the AMPscript Core releases page.
- In Visual Studio Code, on the Extensions tab, click the menu icon (), and then click Install from VSIX.
- Select the VSIX file, and then click Install.