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 ?
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 ?
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.
Open your xx.env file with notepad++ and file -> saveas -> rename to .env and save
In windows normally you can not create a file without name. So to create a .env file there are three ways I know...
php -r "copy('anyfile.example', '.env');"
anything.txt
open CMD
and find its dir then run ren anything.txt .env
Follow the steps below:
Open Notepad or Notepad++ and write the context in the file. Notepad workspace screen with some context
Goto FILE-> SAVE AS Save as Screen in the notepad
Select the All files()All files selection
Save the file with .env in the end.env extension
You've created .env file.env file
I've tried to create .env file in VS Code but it didn't work somehow. If you've any idea please let me know.
Steps to create .env file in Windows machine:
You can create a .env file in an IDE directly, like Visual Studio Code.
1.) Just right-click on the directory and create a new file.
2.) Name it as .env
© 2022 - 2024 — McMap. All rights reserved.
.smthing
files. Like notepad++ or vscode. – JamaaljamaicaAll Files
– Symbolicauth0-config.js.example
so .example file should be saved with same procedure am I right ? – ObengAll Files
– Symbolic