Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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 it in the editor. In Netbeans you have to option to choose: open in system. Now the associated program gets started and opens it with the selected file.

Is there a alternative way to do this in Webstorm/Phpstorm? For now I just rightclick and choose for the option: Show in Explorer. And then doubleclick the file .xds.

Thanks in advance!

like image 265
chriscrossweb Avatar asked Apr 08 '13 12:04

chriscrossweb


Video Answer


2 Answers

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

associated

like image 174
CrazyCoder Avatar answered Oct 24 '22 02:10

CrazyCoder


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$"

like image 42
LazyOne Avatar answered Oct 24 '22 00:10

LazyOne