Linux command
webstorm 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Open project
webstorm [path/to/project]
Open file at line
webstorm --line [42] [file.js]
Compare files
webstorm diff [file1.js] [file2.js]
Open in new window
webstorm --new-window [path/to/project]
Wait until closed
webstorm --wait [file.js]
说明
webstorm is the command-line launcher for JetBrains WebStorm, a professional IDE for JavaScript and web development. It opens projects, files, and directories directly from the terminal, with options to specify the line and column position for precise cursor placement. The launcher supports opening files in an existing WebStorm instance or forcing a new window, and includes a diff mode for side-by-side file comparison. The --wait flag blocks the terminal until the file is closed, making it suitable for use as a Git editor or merge tool. The command is typically installed via WebStorm's "Create Command-line Launcher" option in the Tools menu, which places it in the system PATH.
参数
- --line _N_
- Open at line.
- --column _N_
- Open at column.
- --new-window
- Force new window.
- --wait
- Wait until closed.
- diff
- Compare files.
FAQ
What is the webstorm command used for?
webstorm is the command-line launcher for JetBrains WebStorm, a professional IDE for JavaScript and web development. It opens projects, files, and directories directly from the terminal, with options to specify the line and column position for precise cursor placement. The launcher supports opening files in an existing WebStorm instance or forcing a new window, and includes a diff mode for side-by-side file comparison. The --wait flag blocks the terminal until the file is closed, making it suitable for use as a Git editor or merge tool. The command is typically installed via WebStorm's "Create Command-line Launcher" option in the Tools menu, which places it in the system PATH.
How do I run a basic webstorm example?
Run `webstorm [path/to/project]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does --line _N_ do in webstorm?
Open at line.