HTML
Impostazioni aggiuntive— Preset, opzioni di conversione e il timbro PDF
Profili— Scegli dove va il testo e le impostazioni si adattano. Il tuo testo non viene mai sostituito: l’esempio si carica solo in un riquadro vuoto.
Impostazioni di conversione
Queste valgono solo per il testo semplice. Il testo formattato e l'HTML mantengono la struttura reale del documento, quindi qui non c'è niente da decidere. Torna al formato testo semplice per usarli.
Banco di timbratura— intestazione e piè di pagina stampati sul PDF
Già pronto — un piè di pagina con il titolo del documento e l'ora di stampa. Lascialo così e funziona. Cambia quello che vuoi qui sotto, oppure scegli una disposizione già fatta.
Scrivi quello che vuoi. Questi vengono sostituiti da valori al momento della stampa:
{title}- Primo titolo o prima riga del documento
{date}- Data in cui il PDF è stato stampato
{time}- Ora in cui il PDF è stato stampato
{datetime}- Entrambi, per esempio 30 ago 2026, 14:57
Non c'è un segnaposto per il numero di pagina: un browser non sa contare le pagine dentro un'intestazione ripetuta. La finestra di stampa può aggiungerli — vedi la nota qui sotto.
Ctrl / ⌘ + rotella o pizzico per ingrandire l’anteprima · trascina per spostarti
Markdown
0 chars
Uscita
0 chars
Ctrl / ⌘ + rotella o pizzico per ingrandire · trascina per spostarti
Scorciatoie da tastiera— gli stessi tasti di VS Code, oppure premi Ctrl / ⌘ + H
Output
- Ctrl/⌘+EnterCopia l’output
- Ctrl/⌘+SScarica l’outputVS Code: Save
- Ctrl/⌘+PSalva come PDFSostituisce la finestra di stampa del browser così da stampare il documento e non la pagina attorno
- Ctrl/⌘+Shift+VPassa da testo semplice → testo formattato → sorgente HTMLVS Code: Open Markdown preview
Vista
- Ctrl/⌘+BAdatta l’output allo schermo, e torna indietroVS Code: Toggle the sidebar
- F11Schermo interoVS Code: Toggle full screen
- Ctrl/⌘+=Output più grandeVS Code: Zoom in
- Ctrl/⌘+-Output più piccoloVS Code: Zoom out
- Ctrl/⌘+0Reimposta la dimensione dell’output per questo schermoVS Code: Reset zoomTorna al 100% e alla dimensione del testo con cui questo dispositivo avrebbe dovuto partire
- EscTorna a due pannelli ed esci dallo schermo interoVS Code: Leave Zen Mode
Aiuto
- Ctrl/⌘+Hor?Mostra questo elencoVS Code: Keyboard shortcuts is Ctrl+K Ctrl+SSu un Mac ⌘H è riservato al sistema per nascondere la finestra: usa Ctrl+H o ?
Per un PDF più curato— quattro impostazioni nella finestra di stampa
- Destination: Save as PDF.Not a physical printer, and not "Microsoft Print to PDF" if you can avoid it — it rasterises less predictably.
- Turn on “Background graphics”.It lives under More settings. Without it the browser strips every fill: code blocks lose their shading, table headers go white, and a dark-theme PDF comes out as white paper with white text on it.
- Turn off “Headers and footers”.That is the browser adding the page URL and date of its own accord, which collides with the stamp set in the stamping bay. Switch the browser’s off and keep yours — or the reverse if you want page numbers, which only the browser can count.
- Pick the paper in the dialog.The document no longer asks for a sheet size of its own, so Paper sizeand Scale are both yours to set — pick A4, Letter or anything else your printer offers, and shrink a wide table with Scale if you need to. Margins are still set by the document, sized to fit whatever header and footer you chose.
- Avoid “Fit to page”.It rescales the type and throws the margins out, which is what the stamp spacing depends on. 100% or Default gives the layout the document was built for.
Landscape suits documents built around wide tables. If a table still runs off the edge, switch the output to plain text with tab-separated tables and paste it into a spreadsheet instead — a PDF is a poor container for a very wide table.