Skip to main content
dublove
Legend
Nov 30, 2026 3:30 PM UTC
Answered

Why do scripts in Indesign always open with Windows Notepad?

Hello everyone.

Actually, I have been depressed for a long time.


I have already set the default typing method for jsx and js to vscode in Win11, and even the vscode icon is displayed in the resource manager. Double clicking it will open it with vscode.
However, in InDesign, the script still defaults to opening Windows Notepad.


Could it be that I need to modify the registry? It's really troublesome.

If there is no good solution, I will uninstall Notepad for Win11.

    Peter Kahrel
    Peter KahrelCorrect answer
    Community Expert
    Nov 30, 2026 9:54 PM UTC

    It’s a Windows thing. Apart from general Open With setting, you can set a jsx’s properties to open with VSCode (or another editor). When you change an individual jsx’s Open With properties, this is propagated to all jsx scripts, so you probably the same setting via a different route.

    Anyway, Edit Script in the Scripts panel always opens a script in Notepad, it’s hard-coded, there’s no way round it. The easy solution, as ​@CORCTON mentioned, is to double-click the script in Explorer (or any other file manager). Or use my script launcher (https://creativepro.com/runscript/).

    4 replies

    CORCTON
    Community Expert
    Community Expert
    Nov 30, 2026 6:20 PM UTC

    Unfortunately there’s no setting for this in InDesign — and the Windows file association isn’t what controls it, so no registry change is needed. This exact question came up before: setting .jsx/.js to open with VS Code in Windows changes what happens when you double-click a script in Explorer, but the Scripts panel’s Edit Script command still opens Notepad. That was confirmed by scripting expert Peter Kahrel in the earlier thread, and your own experience matches it.

    So please don’t uninstall Notepad — it won’t make Edit Script open VS Code, since the file association isn’t what drives that command.

    The practical workaround the scripters in that thread use: don’t open scripts from the Scripts panel — open the .jsx file directly in VS Code (from Explorer, or File > Open in VS Code). With the ExtendScript Debugger extension installed in VS Code, you can also run and debug the script in InDesign from VS Code.

    Same discussion, with the details:https://community.adobe.com/questions-671/how-to-set-default-script-editor-in-indesign-18-5-884882

    There is also a long-standing feature request for a real “default script editor” setting in InDesign — worth voting for, since this comes up regularly.

     

     

     

     

     

    Translate
    rob day
    Community Expert
    Community Expert
    Nov 30, 2026 8:52 PM UTC

    Hi ​@CORCTON , On MacOS I can set the default Open With application to VSCode via file Info, so this must be a Windows limitation?:

     

     

    When I Control Click a script in the Scripts panel and choose Edit Script it opens in VSCode

     

     

     

     

    Translate
    Peter Kahrel
    Community Expert
    Peter KahrelCommunity ExpertCorrect answer
    Community Expert
    Nov 30, 2026 9:54 PM UTC

    It’s a Windows thing. Apart from general Open With setting, you can set a jsx’s properties to open with VSCode (or another editor). When you change an individual jsx’s Open With properties, this is propagated to all jsx scripts, so you probably the same setting via a different route.

    Anyway, Edit Script in the Scripts panel always opens a script in Notepad, it’s hard-coded, there’s no way round it. The easy solution, as ​@CORCTON mentioned, is to double-click the script in Explorer (or any other file manager). Or use my script launcher (https://creativepro.com/runscript/).

    Translate