How do I default to "*.*" instead of "Plain Text" in visual studio code?

Viewed 3022

When I create a new file I use Ctrl + n, so when I save the file I use Ctrl + s, the save as type defaults to: Plain text (*.txt,*.gitignore)

So I keep accidentally saving my files as file.js.txt instead of `file.js.

How do I change it to selecting All files (*.*) by default in the save file dialogue so that doesn't happen?

2 Answers

Just set the defaultLanguage in the settings.json.

  1. Click on the File.
  2. Click on the Preferences.
  3. Click on the Settings.

or just shortcut CTRL + ,

  1. Find the files.defaultLanguage property.
  2. Enter the prefered language.

enter image description here

or click the Copy to Settings, and then add the file type in the right pane. such as :

"files.defaultLanguage": "javascript" // or "batch" - to set it as "."

  1. Save it (CTRL + S)

if you dont need to change default extensions for files, you can easy save your files like you need, using "File->Save AS" option, choosing "." like you need, and make any name with any extension...

as sample http://prntscr.com/okfr9s

Related