change default save language as java
-
I had install NPP 6.8.8. I want to change the default save setting of any written program from .txt to .java. Is that possible ? If yes, Then please tell me that how can I do it? Thanks in Advance.
-
Hello @Piyush-Chaudhary,
npp recognises the language by the file extensions, so if there are any java files which aren’t recognised automatically you need to add those extensions to java language (lang.xml).
For the new opened documents you can set the default language to java by using
Settings->Preferences->New DocumentCheers
Claudia -
I know that the NPP recognises the lang. by the file ext… & there is no problem with that all. I want to make the .java ext as default while saving any document. Is that possible?
& that setting-> preferences-> new document method is not working… Please help me, I had got stuck with all time saving as .java … -
For new documents the described procedure works, as long as you don’t change lexer language, but if you want to rename existing documents, then no. Are those files on your computer, maybe in the same directory? What about using
ren *.txt *.java
Cheers
Claudia -
I think I was unable to describe my problem exactly. So, I am again trying it.
I want to save my all new document as save type as .java, but while saving it always showing as .txt extension & I am changing it all time, which is so exausting every time… So, I want to save
as default as. java extension, Please help -
Works for me - https://youtu.be/Djlp2tgmlFY
-
works for me as well - maybe a(nother) clean install will help resolving this.
Cheers
Claudia -
Maybe it has something to do with this option.
Do you have that checked or not?
-
@dail Good call.