I know this is an older thread, but trying to achieve this with Windows became a bit of a pain, and I could not find anything specifically designed for my purposes. I created a Bash function that you can add as an alias (for Git Bash on Windows), which works similar to the command line functions in Visual Studio Code .
Here's a link to the Gist .
If you change the built-in terminal in WebStorm to Git Bash (instructions included in Gist), you can follow these steps:
Create a new file in the current working directory and open it in the editor:
wstorm foo.js
Create a new file in the existing relative path and open it in the editor:
wstorm foo/bar.js
This also works with subdirectories that do not exist:
wstorm this/path/doesnt/exist/file.js
If you are working in the Git Bash terminal (and not in WebStorm) and want to open WebStorm in the current directory, you can open it in the same way as Visual Studio Code:
wstorm .
Note. This must be done in the directory with the .idea folder.
Mike Rourke Mar 02 '17 at 17:22 2017-03-02 17:22
source share