webStorm을 command line으로 실행하기

louis220·2024년 6월 13일
0

vscode의 code . 처럼 webStorm도 터미널에서 바로 프로젝트를 실행할 수 있도록 설정하는 방법

터미널에서

cd /usr/local/bin
sudo vi webstorm // 'webstorm' shell script 생성

아래내용을 복붙하여 넣는다

#!/bin/sh

open -na "WebStorm.app" --args "$@"

webStorm shell script 실행권한 추가

chmod +x /usr/local/bin/webstorm

만약
chmod: Unable to change file mode on /usr/local/bin/webstorm: Operation not permitted

라는 에러가 뜬다면

sudo chmod +x /usr/local/bin/webstorm

정상적으로 세팅되었다면 webstorm . 으로 프로젝트 실행가능

참고: https://www.jetbrains.com/help/webstorm/2024.1/working-with-the-ide-features-from-command-line.html?Working_with_the_IDE_Features_from_Command_Line=

profile
기록을 하자

0개의 댓글