October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsSlow PC?RecommendedPC slow today? Run a repair scan before it gets worseResolve common Windows issues and optimize system performance.Scan NowOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
CSS

How to Take Screenshots and Render HTML/CSS with JetBrains IDEs (IntelliJ IDEA 2026.2)

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

In IntelliJ IDEA 2026.2, open an HTML file and choose View | Open in Browser. Select Built-in Preview for an editor-tab rendering, or choose a configured external browser. The built-in preview uses IntelliJ IDEA’s web server (default port 63342) and reloads after saved HTML, CSS, or JavaScript changes. For an actual image of the IDE or browser, use your operating system’s screenshot utility; IntelliJ IDEA’s Full Screen and Presentation modes change the view but are not documented as capture commands.

Choose the workflow that matches what you need

Goal IntelliJ IDEA workflow Output Automatic updates Debugging required
See a running web page View | Open in Browser → Built-in Preview Interactive page in an editor tab Reloads after saves by default No
Check browser-specific rendering View | Open in Browser → configured browser Interactive page in Chrome or another configured browser Controlled by browser-preview settings No
Apply edits while debugging Live Edit Updated page during a debug session Typically after the documented 300 ms delay Yes
Publish source as readable markup File | Export | Files or Selection to HTML… Static HTML containing formatted source No; regenerate after edits No
Save visible pixels as an image Your operating system’s screenshot utility PNG or another OS-supported image format Not applicable No

How do I preview HTML in IntelliJ IDEA?

Open the page in the built-in preview

  1. Open the project containing your .html file.
  2. Open the HTML file in the editor.
  3. Choose View | Open in Browser.
  4. Select Built-in Preview. IntelliJ IDEA opens the rendered page in an editor tab.

The built-in preview is served by IntelliJ IDEA’s built-in web server. JetBrains documents that this server is always running and does not require manual setup. Its documented default port is 63342, so a local preview URL commonly uses that port.

Use an external browser

From the same View | Open in Browser menu, choose a configured browser instead of Built-in Preview. This is useful when you need the browser’s own developer tools, extensions, viewport emulation, or rendering behavior. Configure available browsers in Settings | Tools | Web Browsers and Preview.

Control reload behavior

Open Settings | Tools | Web Browsers and Preview and find the reload setting. The documented choices are:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  • On Change: reload when the IDE detects a file change.
  • Disabled: leave the page unchanged until you reload it yourself.

Previewed pages reload after you save the HTML file or a linked JavaScript or CSS file by default. Automatic reload does not work when the page has been uploaded to a manually configured default web server; that server’s own refresh mechanism then applies.

How do I see CSS changes live?

Understand the difference between preview and Live Edit

Built-in Preview and external-browser preview render the page. Live Edit is a debugging workflow that applies HTML, CSS, and JavaScript edits while a page is being debugged. It is not merely another name for preview.

Check the Live Edit prerequisites

  • The bundled JavaScript and TypeScript plugin must be available.
  • JavaScript Debugger and Live Edit plugins are required.
  • JetBrains documents those two plugins as available only with an IntelliJ IDEA Ultimate subscription, so verify your edition and current plugin availability.
  • Use Chrome or another Chromium-based browser for the documented JavaScript debugging workflow.

Start a JavaScript debugging session for the page, then edit the source. JetBrains documents a default Live Edit update delay of 300 ms. If you only need a fresh render after saving, stop debugging and use ordinary browser preview with the reload setting that fits your project.

How should I render HTML and CSS accurately?

  1. Keep the HTML, linked stylesheet, and scripts inside the project opened by IntelliJ IDEA.
  2. Open the HTML file with View | Open in Browser and choose Built-in Preview for a quick local check.
  3. Save the HTML or CSS file and watch for the configured reload behavior.
  4. Open the same page in a configured external browser when browser-specific differences matter.
  5. Use Live Edit only when you need edits applied during an active debugging session.

This sequence separates three different questions: whether the page is rendered, whether a particular browser renders it the same way, and whether a debugger can apply edits without a full page reload.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

How can I export code to HTML in IntelliJ IDEA?

If “render HTML” means turning source code into a shareable, formatted document rather than running the web application, use File | Export | Files or Selection to HTML….

  1. Select the file or code you want to export.
  2. Choose File | Export | Files or Selection to HTML….
  3. Choose the destination and export options.
  4. Optionally include line numbers, hyperlinks to classes, and the option to open the generated file in a browser.

The result is static HTML that preserves syntax highlighting, indentation, and source structure. It does not execute your page’s application, load its runtime data, or replace Built-in Preview.

How do I take a screenshot of my IDE or browser?

The official IntelliJ IDEA documentation found for this workflow does not establish a general-purpose screenshot-capture command. Full Screen and Presentation modes change how the IDE is displayed; they are viewing modes, not documented image-export features.

  1. Arrange the IDE, preview tab, or external browser exactly as you want it to appear.
  2. Use your operating system’s screenshot or screen-capture utility to capture the entire display, a window, or a selected region.
  3. Save the image in the format and location offered by your operating system.

Because shortcut keys and capture options differ by operating system, use the current instructions for your OS rather than assuming an IntelliJ-specific key combination. A screenshot captures visible pixels; it is separate from rendering the page and from exporting source code to static HTML.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Troubleshooting

Built-in Preview does not open

  • Confirm that the file is an HTML page and that you invoked View | Open in Browser.
  • Check Settings | Tools | Web Browsers and Preview for browser and preview configuration.
  • If a manually configured default web server is serving the page, do not expect IntelliJ IDEA’s automatic reload behavior.

The page is stale after a CSS or JavaScript edit

  • Save the changed file; reload-on-save is the default behavior for previewed HTML, linked CSS, and linked JavaScript.
  • Check whether reload was changed to On Change or Disabled.
  • With Disabled, reload the preview or browser manually.

Live Edit does nothing

  • Make sure a JavaScript debugging session is running; Live Edit is not a standalone preview mode.
  • Verify the JavaScript and TypeScript, JavaScript Debugger, and Live Edit plugins and confirm that your IntelliJ IDEA edition supports them.
  • Use Chrome or another Chromium-based browser for the documented debugging support.
  • Allow for the documented 300 ms update delay before judging the edit unsuccessful.

The exported HTML does not behave like the application

That is expected. File | Export | Files or Selection to HTML… produces a static representation of source code. Run the page with Built-in Preview or an external browser when you need scripts, styles, and application behavior.

The screenshot is missing content

An operating-system screenshot records what was visible at capture time. Scroll, resize, or switch to the required window before capturing. IntelliJ IDEA’s documented viewing modes do not provide a separate full-page web capture command.

Performance, reliability, and cost considerations

  • Fast iteration: Built-in Preview avoids configuring a separate local web server, and reloads saved assets by default.
  • Browser fidelity: External-browser preview is the appropriate check when Chromium behavior, browser tools, or extensions affect the result.
  • Debugging overhead: Live Edit requires a supported edition, plugins, a debugging session, and a compatible browser.
  • Static documentation: Export-to-HTML is deterministic for source presentation but must be regenerated after edits.
  • Image capture: OS screenshots have no IntelliJ-specific billing or service dependency, but automation and remote capture require a separate tool.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Or skip the browser setup

ScreenshotNeo is a website screenshot API and MCP server for developers. One GET request returns a PNG, JPEG, WebP, or PDF. Before capture it accepts the cookie or consent banner like a visitor and removes more than 60 known consent platforms, newsletter popups, and chat widgets; each cleanup step can be turned off. Bot checks or CAPTCHAs, blank pages, timeouts, failed loads, and cache hits cost nothing, and each response identifies the result with X-Page-Verdict and X-Billed headers.

Use the API when you need repeatable captures outside the IDE, full-page lazy-image loading, a CSS-selector element, dark mode, device presets or custom viewports, retina scale, PDF paper settings and page ranges, custom CSS or JavaScript, pre-capture clicks, hidden selectors, waits for a selector, delay, or network idle, request blocking, custom headers/cookies/user agent/Authorization, timezone or geolocation, transparent backgrounds, resizing, chosen cache TTLs, signed image links, asynchronous jobs with signed webhooks, bulk capture of up to 100 URLs per call, usage data, or an OpenAPI specification. Parameter names used by other screenshot APIs also work, which can simplify migration. Its MCP server exposes take_screenshot, get_page_info, and capture_pdf to Claude, Cursor, and other MCP clients.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

See the ScreenshotNeo documentation for request options. A minimal cURL request is:

curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp

Python:

import requests
r = requests.get("https://api.screenshotneo.com/v1/shot", params={"access_key": "YOUR_API_KEY", "url": "https://stripe.com"}, timeout=90)
open("shot.webp", "wb").write(r.content)

Node.js:

const q = new URLSearchParams({ access_key: 'YOUR_API_KEY', url: 'https://stripe.com' });
const res = await fetch(`https://api.screenshotneo.com/v1/shot?${q}`);

Plans include 1,000 shots per month free with no card, then Starter at $5 for 3,000, Growth at $15 for 15,000, Pro at $39 for 60,000, Scale at $99 for 250,000, and Business at $249 for 1,000,000. Yearly billing gives two months free, and every feature is on every plan. Create a free ScreenshotNeo account to start with 1,000 screenshots a month and no card.

FAQ

Can I automate an IntelliJ screenshot from the IDE itself?

The documented IntelliJ IDEA pages do not establish a general screenshot command or automation API. Use your operating system’s capture utility for manual images, or an external screenshot API when captures must run in scripts or services.

Which workflow creates a file I can send to someone?

Use an OS screenshot for visible pixels, or File | Export | Files or Selection to HTML… for a static, formatted code document. Built-in Preview and Live Edit are viewing and debugging workflows rather than file-export commands.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Frequently Asked Questions

Can I automate an IntelliJ screenshot from the IDE itself?

The documented IntelliJ IDEA pages do not establish a general screenshot command or automation API. Use your operating system’s capture utility for manual images, or an external screenshot API when captures must run in scripts or services.

Which workflow creates a file I can send to someone?

Use an OS screenshot for visible pixels, or File | Export | Files or Selection to HTML… for a static, formatted code document. Built-in Preview and Live Edit are viewing and debugging workflows rather than file-export commands.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Read next

Recommended PC Tool
Recommended PC Tool
Windows Errors? Fix Them Before They SpreadFree repair scan
Outdated Drivers Are Slowing You DownFree scan - exact matches

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.