Skip to main content
rcraighead
Legend
June 16, 2022
Question

What code formatting extensions are recommended for editing ExtendScript in VSCode?

  • June 16, 2022
  • 2 replies
  • 736 views

I've been using Beautify but it is no longer maintained.
Other options are ESLint and Prettier. Don't know if they recognize ExtendScript.

This topic has been closed for replies.

2 replies

erinferinferinf
Adobe Employee
Adobe Employee
June 21, 2022

I use Prettier, and it seems to do OK with ExtendScript.

 

There's some VSCode tooling set-up recommendations in this blog post.

rcraighead
Legend
June 23, 2022

There are at least 17 "Prettier" extensions in the VSCode library and more than one that says it's for "Javascript". Which one should be installed? These are my top 3 guesses:

  • Prettier - Code formatter v9.5.0
  • Prettier - JavaScript formatter v0.17.101
  • Prettier - JavaScript formatter v0.22.1

Also, the blog post from 2019 referenced "Adobe Code Runner". Is that still a useful extention with the updates to "ExtendScript Debugger" extension?

sberic
Legend
July 11, 2022
quote

Also, the blog post from 2019 referenced "Adobe Code Runner". Is that still a useful extention with the updates to "ExtendScript Debugger" extension?


By @rcraighead

 

The Adobe Code Runner (ACR) is largely redundant if you already use the updated ExtendScript Debugger (ESD). ACR uses a different mechanism to trigger code evaluation in a host application, which is why it only supports select applications. Depending upon your setup, ACR may also require "less typing" than ESD (though there are ways to mitigate this in the latter with proper configuration).

 

If you don't already use ACR, I'd suggest seeing how far you can get with ESD before giving it a go. If ESD's script running capabilities don't work as you'd expect then you might give ACR a shot 🙂

 

(For clarity, I'm the person who developed the recent v2 release of ESD.)

Disposition_Dev
Legend
June 16, 2022

i use the standard formatter baked into vscode. that has done just fine for me.