Autofill in webstorm?

Is there a way to get autocomplete for a Google Apps script in Webstorm or in any Jetbrains development environment?

I read that it is possible for an eclipse .

Can I get the GAS library in Webstorm? Or what exactly should I do to make autocomplete work? :)

+6
source share
4 answers

How to use TypeScript instead of pure JavaScript?

A description file for GAS is available here. https://github.com/DefinitelyTyped/DefinitelyTyped/pull/6723

I have not tried it yet, but I plan to try it. I just started using GAS and am learning GAS right now.

P.S GAS, . http://googleappsdeveloper.blogspot.jp/2015/12/advanced-development-process-with-apps.html

+4

:
WebStorm Chrome?
5, "google-app- script" "chrome". gs javascript.
.

+2

, . , . , Eclipse, , , .

+1

WebStorm ( JetBrains JavaScript) TypeScript. JavaScript - - WebStorm.

, TypeScript "/". TypeScript google-apps-script.

WebStorm , . , WebStorm, GmailThread. , getLabels getLabels.

/**
 * @param {GoogleAppsScript.Gmail.GmailThread} thread
 */
function getThreadInfo(thread) {
  thread.getLabels()
}

For your information, you can search for TypeScript community stubs and get more information about them at https://microsoft.imtqy.com/TypeSearch/ .

0
source

Source: https://habr.com/ru/post/1627593/


All Articles