0

I'm using Notepad++ v7.5.8 (64 bit) on Windows 10.

I set my default language to Batch.

After creating a new doc, typing some code and hitting save - it'll automatically select *.bat as the file type.

enter image description here

Notice how it automatically chose those file types (by Save as type:)


However, this is not the case when I select JavaScript, it just shows All types (*.*)

enter image description here

I wonder if I'm doing something wrong when I change it.

(It does the correct syntax highlighting, just not the save as)

1 Answer 1

0

I take it you type a new document and then save it.

Before saving, set in the Language menu the language to JavaScript, and then Notepad++ will suggest JavaScript file-extensions.

image

2
  • However, I have to do this manually... the point of the default is to do it automatically (it does that when I select Batch)
    – Welz
    Commented Oct 21, 2018 at 2:28
  • JavaScript has too many variants, unfortunately.
    – harrymc
    Commented Oct 21, 2018 at 9:45

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .