- Download ExtendScript Toolkit from here.
- Set the proper Photoshop interpreter:
-
Download VSCode from here.
-
In the Extension tab of the VSCode search for
adobe.extendscript-debug
and install. -
Open the folder containing the scripts. Then open the file that you want to run.
-
From
Run and Debug
tab you can either,- start the Run/Debug using
Run and Debug
selectExtendScript
select Host applicationAdobe Photoshop 20202
or
-
you can
create a launch.jason file
and with your own configuration.
The defaul configuration comes withAttach to ExtendScript Engine
andLaunch Script in ExtendScript Engine
modes.{ // Use IntelliSense to learn about possible attributes. // Hover to view descriptions of existing attributes. // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 "version": "0.2.0", "configurations": [ { "type": "extendscript-debug", "request": "attach", "name": "Attach to ExtendScript Engine" }, { "type": "extendscript-debug", "request": "launch", "name": "Launch Script in ExtendScript Engine" } ] }
Attach to ExtendScript Engine
does not start the debugging and you should run theExtendScript: Evaluate Script in Host..
command.Launch Script in ExtendScript Engine
runs the script in the host application (for example Photoshop).(Preferred) If you know your host application (by running the
launch
mode), you can specify it as a parameter in the configuration mode or by creating a new mode:{ // Use IntelliSense to learn about possible attributes. // Hover to view descriptions of existing attributes. // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 "version": "0.2.0", "configurations": [ { "type": "extendscript-debug", "request": "attach", "name": "Attach to ExtendScript Engine" }, { "type": "extendscript-debug", "request": "launch", "name": "Launch Script in ExtendScript Engine" }, { "type": "extendscript-debug", "request": "launch", "name": "Debug Photoshop", "hostAppSpecifier": "photoshop-140.064", "stopOnEntry": false } ] }
- start the Run/Debug using
-
Restart VSCode and close Photoshop.
-
Start debugging!
-
Suppress the RunningScripts warning. Follow this instruction:
- Navigate to
\Users\[User Name]\AppData\Roaming\Adobe\[Photoshop_version]\[Photoshop_version]Settings\
- Open/create
PSUserConfig.txt
- Insert
WarnRunningScripts 0
- Navigate to
-
Download WebStrom from here.
-
Create new WebStorm project and set the interpretor to:
C:\Program Files\Adobe\Adobe Photoshop 2020 \Photoshop.exe