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

后端 未结 2 433
一整个雨季
一整个雨季 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:29

    Use Files opened in associated applications in File | Settings | File Types:

    associated

    0 讨论(0)
  • 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$"

    0 讨论(0)
提交回复
热议问题