Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I open WebStorm from terminal?

Tags:

webstorm

fish

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:

WebStorm image

I go to ToolBox's WebStorm Settings and I'm met with this:

enter image description here

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.

like image 441
nyphur Avatar asked Apr 25 '19 04:04

nyphur


People also ask

How to launch wstorm from a terminal in Linux?

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 . &

How do I open WebStorm files from the command line?

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.

How do I change the default terminal in WebStorm?

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.

How do I run a WebStorm project in jetbrain toolbox?

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 .


2 Answers

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

like image 150
Dblaze47 Avatar answered Oct 13 '22 03:10

Dblaze47


After opening a ticket with Jetbrains support, the default path is /usr/local/bin. Adding this worked.

JetBrains Toolbox Shell Script

like image 34
nyphur Avatar answered Oct 13 '22 05:10

nyphur