Preview and Print Files

Preview and print files in TagSpaces using built-in viewers for images, PDFs, audio, video, documents, ebooks, 3D models, and archives without external apps.

<WebPageStructuredData />

TagSpaces supports the previewing of many file types without requiring external viewers. The application includes several viewer extensions:

TagSpaces is built with extensibility in mind, allowing new file viewers to be easily developed and integrated into the application.

Source Code Browser and Editor: TagSpaces includes a built-in text editor that supports source code highlighting for many common programming languages. Coupled with the JSON editor, it serves as a convenient tool for navigating source code repositories and performing basic code edits. However, it is not intended to replace your IDE but rather to give you a quick overview of code files.

Assigning File Viewers to File Extensions

You can assign different viewer extensions to specific file extensions via the settings menu.

settings tab file types

Setting TagSpaces as default application for certain file types

The desktop application registers on installation the app as default viewer for MD (markdown), HTML, TXT and URL files types. In addition to that TagSpaces can be made manually in the operating system the default viewer for every supported file type.

File association under macOS

Opening files from command line

You can also open supported files directly from the terminal or the command line:

```bash title="Windows" C:\Users\username\AppData\Local\Programs\TagSpaces\TagSpaces.exe C:\Users\username\Desktop\testfile.md


```bash title="macOS"
/Applications/TagSpaces.app/Contents/MacOS/TagSpaces /Users/username/Desktop/testfile.md

bash title="Linux" tagspaces /home/username/Desktop/testfile.md

Printing Files

Most viewer extensions in TagSpaces support printing thanks to the built-in print functionality. In order to print a file you have to open in the file properties and from there you should click on the round FAB button in the bottom right part of the screen. From there you can choose the Print menu entry, which will open the print dialog of your operating system. <CenteredImage caption=“Printing files” src=“/media/core/printing.avif” showCaption />

:::tip Exporting to PDF

Some operating systems like macOS support directly printing to PDF files. This can be seen in the previous screenshot. :::