Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>HTML AMP Source MapperNew to Visual Studio Code? Get it now.
HTML AMP Source Mapper

HTML AMP Source Mapper

Sagar Tyagi

|
3 installs
| (0) | Free
Preview HTML + AMPscript with sync highlighting
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

HTML AMP Source Mapper

Preview HTML with AMPscript and seamlessly map preview elements back to source code in Visual Studio Code.


🚀 Features

  • 🔍 Live preview of HTML with AMPscript support (mock rendering)
  • 🎯 Click any element in preview → automatically highlights corresponding code in editor
  • ▶️ Quick access via Play button (top-right corner) in VS Code
  • ⚡ Lightweight and developer-friendly workflow

🛠 How to Use

▶️ Open Preview (Play Button Method)

  1. Open your HTML / AMPscript file in VS Code
  2. Look at the top-right corner of the editor
  3. Click the ▶️ Play icon Play Button
  4. This will open the HTML AMP Preview panel

🔍 Alternative Method (Command Palette)

  1. Press Ctrl + Shift + P
  2. Search: Open AMP Preview
  3. Press Enter

🎯 Click-to-Highlight Feature

Preview Once preview is open:

  1. Click on any element in the preview
  2. The extension will:
    • Identify the corresponding line/block
    • Automatically highlight it in the editor
    • Scroll to that section

👉 This helps quickly map UI ↔ code


⚠️ Important Notes

  • AMPscript is simulated, not executed via Salesforce Marketing Cloud
  • Complex logic (IF, loops, API data) may not fully render
  • Designed for development and debugging purposes

📂 Supported Files

  • .html
  • .htm
  • AMPscript inside HTML (%%[ ]%%, %%=v()=%%)

💡 Example

%%[
VAR @name
SET @name = "Sagar"
]%%

<h1>Hello %%=v(@name)=%%</h1>
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft