I've looked around but I've only found answers for past versions. I have a new version of WebStorm and I want to open my projects from the command line, but wstorm .
and webstorm .
doesn't seem to work.
I've tried going to Tools > Create Command Line Launcher... and I get this:
I go to ToolBox's WebStorm Settings and I'm met with this:
Generate shell scripts is turned on, but the but the commands still do not work in my terminal.
Am I missing something? Am I supposed to add in a Shell scripts location? I'm not entirely sure I understand.
Type the keyboard shortcut to open "Create Launcher Script" You can now launch WebStorm from the terminal with webstorm and can choose a directory to open After setting up WebStorm to create the cli launcher you actually want to run wstorm . &
With WebStorm, you can open, format, inspect, compare, and merge files from the command line. Add the path to the WebStorm bin folder to the Path environment variable (for example, C:\Program Files\JetBrains\WebStorm\bin ). On macOS and Linux, create the command-line launcher to integrate WebStorm with your shell.
Press Ctrl+Alt+S to open IDE settings and select Tools | Terminal. Specify the desired shell to use with the embedded terminal emulator, change the start directory, and define environment variables among other settings. WebStorm should automatically detect the default shell based on your environment.
To do that go to JetBrain Toolbox, click on the settings cog, open Shell Scripts and type the path: /usr/local/bin click apply. Go to your terminal, from your project folder type webstorm .
It's actually very easy. First you open up Webstorm, and press SHIFT
twice. This will bring up a search box, where you type: Create Command Line Launcher
. You will see a search result from Tools
will be highlighted, click on it, and it will suggest the default path. Just click on Ok
. Your command line launcher is now ready, so you can open terminal, cd
to your project root folder, and type webstorm ./
to launch webstorm.
If the Create Command Line Launcher
option is not working, try the following:
If you are on MacOS, try adding the path as instructed in their official page. And if you are on Linux, just uninstall the current version and reinstall as a snap package using sudo snap install webstorm --classic
. This way, you can launch it from the terminal just by typing webstorm
After opening a ticket with Jetbrains support, the default path is /usr/local/bin
. Adding this worked.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With