Open WebStorm in the current working Directory

Many of my projects start in the terminal and then need to be worked on inside of WebStorm. But it's a bit troublesome to have to open WebStorm, the locate the folder and import it.

Is there any terminal commands that I can use to just open WebStorm from my current directory?

6 comments
Comment actions Permalink

Hi there,

Pass the folder path as an argument.

0
Comment actions Permalink

So just to clarify, I would enter this if my terminal was already in the working directory          


$ ~/My/Path/To/WebStorm.app .

If I do this, I just get a responce of "bash: /Applications/WebStorm.app/: is a directory"

0
Comment actions Permalink

I'm not a Mac user, so I could be wrong here, but:

1) When launching from terminal on Mac, you should use this kind of command: "open -a /Applications/WebStorm.app/"

2) You should have created a launcher for WebStorm for launching it from terminal (I believe IDE should have offered this for you). Check "Tools" menu items -- I believe it should be there (e.g. "Tools -> Create command line launcher").

Once created you can launch IDE using "webstorm" or "wstorm" command (not 100% sure which one).

0
Comment actions Permalink

Thank you so much! Works like a charm!

0
Comment actions Permalink

My terminal always opens in root directory. Can seem to find how to set this to current project. Anyone have an idea?

Thanks

0
Comment actions Permalink

what OS are you on? What shell do you use in terminal? cmd.exe? Do you have any 'AutoRun' commands configured in your registry, so that the certain commands (like 'cd') are executed each time you start cmd.exe? See http://superuser.com/questions/571715/windows-command-line-not-recognized-as-an-internal-or-external-command-operab.

0

Please sign in to leave a comment.