File type associations

Last modified: 31 March 2025

For language-specific features (such as syntax highlighting and code analysis) in files representing different languages and technologies, PhpStorm maintains a list of file types, each of which links a language service with one or more file name patterns.

The default list of file types covers all relevant file name patterns, but you can add new file types for your custom language files and change the associated file name patterns for existing file types.

When you open a file in the editor, PhpStorm chooses the file type and the corresponding language service according to the file name pattern. If the file name does not match any of the patterns registered for file types, you can associate the file name pattern with a specific file type.

Apart from that, you can make PhpStorm the default application for opening specific file types from the file manager on your operating system.