Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    change default save language as java

    Help wanted · · · – – – · · ·
    4
    9
    6575
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Piyush Chaudhary
      Piyush Chaudhary last edited by

      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.

      Claudia Frank 1 Reply Last reply Reply Quote 0
      • Claudia Frank
        Claudia Frank @Piyush Chaudhary last edited by Claudia Frank

        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 Document

        Cheers
        Claudia

        1 Reply Last reply Reply Quote 0
        • Piyush Chaudhary
          Piyush Chaudhary last edited by

          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 …

          Claudia Frank 1 Reply Last reply Reply Quote 0
          • Claudia Frank
            Claudia Frank @Piyush Chaudhary last edited by

            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

            1 Reply Last reply Reply Quote 0
            • Piyush Chaudhary
              Piyush Chaudhary last edited by

              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

              1 Reply Last reply Reply Quote 0
              • fade2gray
                fade2gray last edited by

                Works for me - https://youtu.be/Djlp2tgmlFY

                1 Reply Last reply Reply Quote 0
                • Claudia Frank
                  Claudia Frank last edited by

                  works for me as well - maybe a(nother) clean install will help resolving this.

                  Cheers
                  Claudia

                  1 Reply Last reply Reply Quote 0
                  • dail
                    dail last edited by

                    Maybe it has something to do with this option.

                    Screenshot

                    Do you have that checked or not?

                    fade2gray 1 Reply Last reply Reply Quote 0
                    • fade2gray
                      fade2gray @dail last edited by

                      @dail Good call.

                      1 Reply Last reply Reply Quote 0
                      • First post
                        Last post
                      Copyright © 2014 NodeBB Forums | Contributors