如何使用命令行在 WebStorm 中打开项目 (Windows 10)

How to open a project in WebStorm, using the command line (Windows 10)

我想从命令行打开 WebStorm。

我的目标是,当我导航到 PC 上的正确目录时,使用命令将当前目录作为 WebStorm 中的项目打开。

从 Windows 上的命令行打开项目的语法是 path/to/WebStorm.exe path/to/your/project - 请参阅 https://www.jetbrains.com/help/webstorm/2016.2/working-with-webstorm-features-from-command-line.html#d279626e72。您可以将 %WebStorm installation directory%/bin 添加到您的系统 %PATH% 以便能够 运行 WebStorm 使用 WebStorm 命令而不是输入 exe 的完整路径。

要将当前目录作为项目打开,您可以(原则上)只需运行 WebStorm .。但这目前不起作用 (IDEA-108586)。您可以尝试使用 WebStorm.bat . 而不是