Settings/Preferences | Editor | File Types
Files Opened in Associated Application
entry in the top list .env
files from the bottom list (Registered Patterns). There is a plugin for .env files. It also helps by autocompleting env() and getenv() functions. https://plugins.jetbrains.com/plugin/9525--env-files-support
Go to file -> settings -> Editor -> File Types -> Recognized file types and select the "Text" -> add some patterns
.evn
*.env
.evn.*
*.env.*
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.