For Cursor. Each HTML file opens in its own panel tab. Markdown links open on Preview, text in the editor, and a PDF in a new tab. HTML bookmarks open that file’s tab. Select element copies a reference with the page path. Print opens the system print dialog. PDF saves a file beside the open document
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
For Cursor. Click a .html or .htm file and it opens in this extension’s panel. The display title is Cursor Browser Bar Button (it contains “Cursor”), and the extension id is oleksiiko.cursor-browser-bar-button.
HTML panel. Each HTML file opens in its own tab. Explorer, Open HTML in Browser, and an HTML bookmark open that tab, or reveal it when the file is already open. Open With… still opens the source. An http: or https: link stays in the panel.
Relative links resolve from that file’s folder and open only inside the workspace:
Markdown opens in the native editor on Preview, with the Preview / Markdown toggle.
.txt, .mdc, and other plain text open in the editor.
Another HTML file opens in its own tab. The page you are on stays put.
A PDF opens in a new tab in the same group. The HTML panel stays open.
Bookmarks. The Browser side pane stores them on this machine. A website URL opens in Cursor’s browser. A local .html or .htm file opens in the extension panel.
Select element. On the HTML panel’s editor toolbar. The same button turns pick mode on and, while it is on, reads Cancel select in that spot. Click an element and the extension copies a reference that includes the page path (page:), the document title, tag, id, classes, a CSS path, and outerHTML trimmed to about 2 KB. Paste it into chat yourself. Cancel select or Escape copies nothing.
Print and PDF. On that same editor toolbar when the HTML panel, a Markdown file, or a text file is active. Print opens the system print dialog. PDF saves <name>.pdf in the same folder and overwrites it. The HTML panel uses the page, including its CSS. Markdown uses the rendered preview, including when the tab is on Preview. A text file uses the text. A short message shows the saved path.
New Browser Tab. Always on the editor title bar. It opens Cursor’s browser for a website. Stock VS Code does not provide that browser.
Requirements
Cursor, and a local folder when you open an HTML file.
Limitations
Website tabs need Cursor’s embedded browser.
A link that leaves the workspace is not opened.
Cursor may hide title-bar icons until you enable them under Configure Icon Visibility.
Select element copies to the clipboard. It does not type into chat.
Print and PDF need Chrome, Edge, Brave, or Chromium on the computer.