Search code examples
windowsfile-extension

How to save .env file in windows?


I tried to save file with .env file extension but I could not see any .env file extension in save as dropdown option.

I also tried to rename it as .env but it gets saved as text file (see screenshot) how can I fix this issue ?

enter image description here


Solution

  • If you use Windows, to save any file with an extension different from the default extension of the tool you are using, You have to select the option which appears like:

    All Files or All Files (*.*) in the Type of File dropdown in the save dialogs.