Incorrect HTML Comment Syntax - Using {{/* /}} Instead of <!-- -->

Issue: Cursor is incorrectly using Go template comment syntax ({{/* */}}) instead of standard HTML comment syntax () when commenting in HTML files.

Steps to Reproduce:

  1. Open an HTML file in Cursor
  2. Verify that the status bar correctly identifies the file as HTML (see attached screenshot)
  3. Press Command+/ (Mac) to comment a line
  4. Observe that Cursor inserts {{/* */}} instead of

Expected Behavior:

  • Cursor should use standard HTML comment syntax () when commenting in HTML files

Actual Behavior:

  • Despite the file being correctly identified as HTML in the status bar, Cursor incorrectly uses Go template comment syntax ({{/* */}})
  • This happens even though the file:
    • Has a .html extension
    • Is properly recognized as HTML (shown in status bar)
    • Contains standard HTML markup

Environment:

  • OS: macOS Sequoia 15.4
  • Cursor Version: 0.48.9 (Universal)
  • VSCode Version: 1.96.2
  • Commit: 61e99179e4080fecf9d8b92c6e2e3e00fbfb53f0
  • Electron: 34.3.4
  • Chromium: 132.0.6834.210
  • Node.js: 20.18.3
  • V8: 13.2.152.41-electron.0
  • Architecture: arm64

Additional Notes:

  • This behavior persists even after trying various solutions like:
    • Changing language mode to HTML
    • Creating custom keybindings
    • Checking file associations
  • The issue affects productivity as it requires manual correction of comment syntax

The HTML file is quite simple:

<!DOCTYPE html>
<html lang="en">

  <head>
    <meta charset="utf-8">
    <meta name="description" content="">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <title>Untitled</title>

    <link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65" crossorigin="anonymous">
    <link rel="stylesheet" href="/css/main.css">
  </head>

  <body>
    <h1>Hello, world!</h1>

    <p>
      This is a test
    </p>


    <!-- Do NOT delete this script! -->
    <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-kenU1KFdBIe4zVF0s0G1M5b4hcpxyD9F7jL+jjXkk+Q2h455rYXK/7HAuoJl+0I4" crossorigin="anonymous"></script>
  </body>
</html>