r/GoogleAppsScript • • Dec 07 '20

Question New Google App Script IDE

Looks like Google is rolling out a new app script IDE. Have you had it roll out to you yet?

https://developers.google.com/apps-script/releases

12 Upvotes

21 comments sorted by

4

u/[deleted] Dec 08 '20

Well, I use VSCode for most of my projects, but that's very welcome for those small projects we build in the moment of need. By the way, anyone has a screenshot of how it looks?

1

u/[deleted] Dec 08 '20

TypeScript

May I ask how you debug with it? I'm new to clasp and I got it working with VS Code, but I don't see a way to run and debug.

2

u/[deleted] Dec 08 '20

That's the worst part to work on GAS. There's no actual way to debug it locally. You'll probably have to compile your code and then debug it on the apps script editor, but there's a few options depending on your use case.

Since you use clasp, you can leave it on watch mode to automatically push your changes and be a bit more dynamic, then use the GAS editor debugger.

If you just want to run the functions instead of opening it in the debugger, you can create a Google Cloud Platform project, then assign your apps script project to it and use clasp to run the functions and get the logs. I don't think this is too effective tho.

Lastly, if you're building project with a UI (like a modal menu, a sidebar or a web app), this github repo. It allows you to use gas server functions with live reload. I also made a fork that has typescript support (npm install @guilhermetod/gas-client).

If you'd ask me, I think its worth building a UI even if it's strictly for debugging purposes. Hit me up if you have any trouble setting this up.

1

u/[deleted] Dec 09 '20

Thanks a lot! Will try it later today!

2

u/_mrtoast Dec 10 '20

Has anyone had this roll out to them? I am still on the original IDE

Edit: just read here https://www.benlcollins.com/apps-script/google-apps-script-ide/ its on a 2 week roll out

2

u/ephraimsong Dec 08 '20

Any one know how to get the redesign?

post didn't have any information.

1

u/_mrtoast Dec 08 '20

I think it's just slowly rolling out as my colleague got it but I didn't

1

u/ephraimsong Dec 08 '20

tsk, dang. Thanks for following up.

Where you able to ask what your colleague said about it?

1

u/_mrtoast Dec 08 '20

He said he just logged in and had it. He said he liked it but didn't say too much

6

u/Strel0k Dec 07 '20 edited Jun 19 '23

Comment removed in protest of Reddit's API changes forcing third-party apps to shut down

5

u/NeedlesslySexual Dec 07 '20

As one of the few dumb users left that still uses the integrated IDE, this is awesome news and I can’t wait for it to roll out to me.

2

u/[deleted] Dec 08 '20

Is there a another choice? I know you can use clasp, but you can't really debug with it.

4

u/burkybang Dec 07 '20

Looks like some exciting new features. However, I still prefer to compile from TypeScript before uploading via clasp.

3

u/takishan Dec 07 '20

Looks like some much needed updates, like auto formatting, keyboard shortcuts (I'm assuming they added things like delete lines, select next instance of selected word, etc ?), and a right click menu with a goto / rename symbols

Although I'm not gonna stop using VS Code lol

5

u/gh5000 Dec 07 '20

It basically is vscode. Uses the same engine.

If it properly formats client side HTML and JavaScript I would use it more.

1

u/ephraimsong Dec 08 '20

VS Code? You mean you're able to use VS code to run code for GAS? Is there a guide on this?

4

u/takishan Dec 08 '20

actually yes i made one for this sub, posted it a while ago hope it helps

1

u/labnol Dec 08 '20

https://www.youtube.com/watch?v=KxdCIbeO4Uk Build with Apps Script inside VS Code

3

u/[deleted] Dec 08 '20

The editor now supports codeblock and function collapsing.

So looking forward to this