IntelliJ Platform Plugin SDK
 
IntelliJ Platform Explorer

Virtual Files

Edit pageLast modified: 28 November 2024

A VirtualFile (VF) is the IntelliJ Platform's representation of a file in a Virtual File System (VFS).

Most commonly, a virtual file is a file in a local file system. However, the IntelliJ Platform supports multiple pluggable file system implementations, so virtual files can also represent classes in a JAR file, old revisions of files loaded from a version control repository, and so on.

The VFS level deals only with binary content. Contents of a VirtualFile are treated as a stream of bytes, but concepts like encodings and line separators are handled at higher system levels.