How to comment multiple lines in env file

6k Views Asked by At

I wanted to know if there is any way to comment a block or multiple lines in .env file. I know that by using # we can comment a single line but I want to comment multiple lines at once. Currently I am using visual studio code in ubuntu and working on Vue(Javascript) project. Any help would be appreciated. Thanks in advance.

1

There are 1 best solutions below

0
Pasquale On

Unfortunately there is no character sequences which could allow to comment lines in blocks in an .env file. As you said, the only way to comment is at line level with the # character.

A workaround would be looking for a shortcut in your IDE to employ multi-line editing (e.g. use Shift + Alt + Arrow Keys on Visual Studio Code in Linux).