Skip to content

Add Native Syntax Highlighting Support for .env Files in VS Code #267355

@iwangbowen

Description

@iwangbowen

Type: Feature Request

VS Code currently lacks built-in syntax highlighting for .env files, which are simple, widely used configuration files for environment variables. Users must rely on third-party extensions to get basic highlighting, which is inconvenient for such a common format. Adding native support would improve the editing experience by automatically recognizing key-value pairs, comments, and basic structure without requiring additional plugins. This would align with VS Code's goal of providing out-of-the-box support for popular file types and reduce dependency on external tools.

VS Code version: Code - Insiders 1.105.0-insider (b41ed00, 2025-09-17T23:32:07.124Z)
OS version: Windows_NT x64 10.0.26100
Modes:

Metadata

Metadata

Assignees

Labels

insiders-releasedPatch has been released in VS Code Insiders

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions