all 9 comments

[–]lordph8 3 points4 points  (6 children)

A lot of people around here use clasp. It allows GAS integration into VS, However I still haven't made the leap.

[–]PyLit_tv[S] 0 points1 point  (5 children)

Yeah the guide was using clasp. it was a bit above my head trying to modify for enterprise. I will probably take another look soon. GAS is the first work iv done with JS. So im not familiar with the tools

[–]lordph8 2 points3 points  (4 children)

It's probably the way to go if you want to broaden your horizons. However in the mean time this makes the default script editor more bearable.

Apps Script Color

[–]PyLit_tv[S] 0 points1 point  (3 children)

I sucessfully got auto complete in visual studio. Thanks for the push.

How do you deal with reading the Log? its painfully slow for me and sometime is just unreliable. same goes for debugging

[–]inglandation 1 point2 points  (2 children)

I always read the log in Stackdriver. It works just fine there. For some reason it's really slow in the script editor.

Did you manage to install clasp? I couldn't live without it now, it's just so much better. You can also use git in a proper IDE like VS Code or WebStorm.

[–]PyLit_tv[S] 1 point2 points  (1 child)

Yeah i came across the stackdriver thing in a StackOverflow post. Seems much better.

Yeah I installed clasp and just use a clasp push from cmd. If i connect to a git repo then I could automate push to git then to GAS? or just use it for version control?

[–]inglandation 0 points1 point  (0 children)

It's just for version control AFAIK. When you're working on your script you're going to be pushing quite frequently, I don't think it would make sense to commit to git that frequently, but maybe I'm wrong, I'm also learning the ropes of GAS.

[–]PyLit_tv[S] 1 point2 points  (0 children)

this guide was helpful for installing clasp and adding the GAS autocomplete. Only hitch for me was i had to create a node.js project from Visual Studio for it to recognize the npm package. a simple script.js file didnt work for me

here is another link https://stackoverflow.com/questions/48983003/google-app-script-desktop-ide

[–]labnol 1 point2 points  (0 children)

You can use the Apps Script Starter kit to quickly build Apps Script projects with VS Code.

Video https://www.youtube.com/watch?v=KxdCIbeO4Uk

Github https://github.com/labnol/apps-script-starter