Why is my .env file showing as text file in VSCODE? - visual-studio-code

(https://i.stack.imgur.com/ExtbV.png)
Somebody tell what is the problem with .env and why is it showing as text file?

Related

VIsual Studio Code Plain Text Files

I have been searching for over 30 minutes but can't find the solution. On my Windows installation of VSCode when I create a new file (default to Plain Text as expected) and I go to save, it defaults to saving with a .txt extension. On my Mac though it defaults to All Files. I have searched through settings and I don't recall changing anything on my Windows machine but I WANT to save new files that are Plain Text with .txt by default on Mac. What am I missing?

How to create a file in VS Code with Vim extension?

Using the VIM extension for VSCode, is there a way to create a file inside the folder you are currently selecting on the explorer tab?
Similar to how it works with NERDTree on NVIM itself where you can press "a" and it lets you write a filename.
Brief example where the cursor would be placed on the "pages" folder.
You can use :e <filename> to create a file and simply use :w to save it.
It creates a file in the directory in which your current file is open. So in the screenshot you provided, if you would be editing _app.tsx, the new file will be created in this directory unless differently stated in your filename.

Inspect at see why prettier ignores one file (that is not listed in the .prettierignore)

Prettier seems to be working just fine for all other files except this one file that I can't format without forcing it.
Tried with npx prettier --write . and the vscode extension format with... The only way to format the file is to Format with (force).
Is there a way the inspect why a file is ignored by prettier?
Why is Prettier not formating one of the .ts files? the file is only 700 lines so don't think its a speed issue.

VSCode restore file from tmp file

I Accidentally discarded some changed files in VScode and lost alot of work. I believe I have found them saved as tmp files in the
/users/appdata/local/temp/1 directory, but when I try to open it's just symbols/binary encoding that I am not familar with. These were typescript files with the extension .tsx...when I open with VScode or notepad I just see the wierd symbols which I believe are binary encoding.
Is there a way to restore the temp file to a text or typescript file???
I had a similar problem just now and I just renamed the file, changing the extension from ".tmp" to ".cs" and it worked, I lost a few lines of code but it was fine.
I don't know if this will work for every case though.

Why does vscode open code.js file instead of current folder?

Subsequent to When typing code in command line to launch vscode how to avoid this wsh error?
I can now launch vscode by typing
code .
But if folder contains code.js file it will open that file instead of current folder.
Why?
I can't see any explanation in doc https://code.visualstudio.com/docs/editor/command-line