VS Code
Why when i create a new file it opens automatically, can i change that
6 Replies
of course
How?
Not as far as I know.
In fact, when you create a
New Text File
, no file is really created on your computer. A file is only created after it is saved.
The New Text File
command simply creates a new editor tab for temporary modification.if you open a folder, you actually create a real file in the folder, but it doesn't open automatically
just right-click on the folder on the left side, create the file and that's it
I thought the whole purpose of creating a file was to code within the file straight away
not always
there's stuff like behaviour files, which can trigger certain behaviours on certain programs by their mere presence
also, empty files can be useful
for example, in php, having an empty index.php prevents badly configured servers from returning a directory listing