add auto-complete support for Google Apps Script TypeScript projects
-
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++.
-
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. -
@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 forDocumentApp
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?
-
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.