Community
    • Login

    add auto-complete support for Google Apps Script TypeScript projects

    Scheduled Pinned Locked Moved General Discussion
    4 Posts 3 Posters 2.5k Views
    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.
    • imthenachomanI
      imthenachoman
      last edited by

      I am using Notepad++ to develop my Google Apps Script projects. It works great but I am missing the auto-complete functionality of Google Apps Script online editor.

      I see articles online for getting Visual Studio Code to work with auto-complete for Google Apps Scripts. I am wondering if its possible to get it to work with Notepad++.

      • https://stackoverflow.com/questions/49015874/enabling-autocomplete-for-google-apps-script-in-locally-installed-ide#49113944
      • https://yagisanatode.com/2019/04/01/working-with-google-apps-script-in-visual-studio-code-using-clasp/
      1 Reply Last reply Reply Quote 0
      • PeterJonesP
        PeterJones
        last edited by

        I know nothing about “Google Apps Script TypeScript”.

        Sometimes, proprietary scripting languages are similar enough to an existing language defined in Notepad++ that you can just set the .gasts extension (or whatever extension it uses) to be interpreted as that language. then you can go into <install directory>\autoCompletion and edit <language>.xml for whichever language is appropriate, following similar syntax to what you already see there, and the auto-completion docs, and add the extra syntax or keywords that you desire.

        Sometimes, proprietary scripting languages are significantly different than already-defined languages. In that case, you can create a UDL (User Defined Language) (Language > Define your language…). Then you can create a new auto-completion xml file in the <install directory\autoCompletion folder, with the same name as the UDL.

        imthenachomanI 1 Reply Last reply Reply Quote 3
        • imthenachomanI
          imthenachoman @PeterJones
          last edited by

          @PeterJones said:

          I know nothing about “Google Apps Script TypeScript”.

          Sometimes, proprietary scripting languages are similar enough to an existing language defined in Notepad++ that you can just set the .gasts extension (or whatever extension it uses) to be interpreted as that language. then you can go into <install directory>\autoCompletion and edit <language>.xml for whichever language is appropriate, following similar syntax to what you already see there, and the auto-completion docs, and add the extra syntax or keywords that you desire.

          Sometimes, proprietary scripting languages are significantly different than already-defined languages. In that case, you can create a UDL (User Defined Language) (Language > Define your language…). Then you can create a new auto-completion xml file in the <install directory\autoCompletion folder, with the same name as the UDL.

          So I think it will be a lot more complicated than that because I’m looking for function/class auto-complete. For example, if I use the Google Apps Script online editor and type DocumentApp. (notice the .) then it will present me with a list of functions/properties for DocumentApp to auto-complete.

          I looked into it some more and I don’t know if Notepad++ supports this kind of auto-complete. It seems to only handle basic word completion. Or am I wrong?

          EkopalypseE 1 Reply Last reply Reply Quote 0
          • EkopalypseE
            Ekopalypse @imthenachoman
            last edited by

            @imthenachoman

            npp knows only the concept of having statically defined completions lists.
            If you want such functionality you need to find out if the language
            in question offers some tools which can be used by npp to introspect your object.

            1 Reply Last reply Reply Quote 3
            • First post
              Last post
            The Community of users of the Notepad++ text editor.
            Powered by NodeBB | Contributors