PHPStorm / Webstorm, how to open a file with the associated program

后端 未结 2 450
一整个雨季
一整个雨季 2021-01-02 08:27

I am a new user of Webstorm/PHPStorm. Before this IDE, I used Netbeans. To open a .xds file, that is a kind of text file that you can open it just like a .js file and edit i

2条回答
  •  一向
    一向 (楼主)
    2021-01-02 08:36

    AFAIK there is no such action available in current versions.

    Two options:

    1. Assign such extension / pattern to File opened in associated applications in Settings | Editor | File Types. Cons: you will not be able to open such file in IDE itself.

    2. Create custom External Tool entry (Settings | Tools | External Tools) that will launch such file with default application in your OS. For Windows it can be:

    Program: cmd.exe
    Parameters: /C start "$FilePath$"

提交回复
热议问题