1. 程式人生 > >ubuntu14.04下安裝WebStorm,並建立桌面圖表

ubuntu14.04下安裝WebStorm,並建立桌面圖表

一.WebStorm 是 jetbrains 公司旗下一款 JavaScript 開發工具,被廣大 JS 開發者譽為“Web前端開發神器”。

安裝

解壓下載的 gz 包,命令列下執行:

cd bin
./webstorm.sh

不過 WebStorm 預設情況下是需要收費的,可以申請為開源專案的貢獻者來獲得 licenses。

安裝外掛

安裝完成後,在 File - Settings - Plugins,選擇需要安裝的外掛,例如 AngularJS、Markdown 等。

設定專案

在 File - Settings - Directories 下,通過 Add content Root 來設定我們的專案路徑

在 File - Settings - JavaScript - Libraries 下,勾選想要支援的庫,建議全部勾上(如 NodeJS)。

設定外觀、字型

在 File - Settings - Editor - Colors & Fonts - Font 下,選擇自己想要的主題,然後 Save as... 儲存自己想要的主題名稱,設定字型為Ubuntu Mono,字型設定為 16(貌似有點小,相當於 Eclipse 下的 12)

顯示行數

在 File - Settings - Appearance 下,勾選 Show line numbers 選項。

二.建立桌面圖表

1.建立檔案

sudo gedit WebStorm.desktop

2.寫入內容

[Desktop Entry]
Categories=Development;
Comment[zh_CN]=
Comment=
Exec=/home/kerita/下載/webstorm/bin/webstorm.sh
GenericName[zh_CN]=IDE
GenericName=IDE
Icon=/home/kerita/下載/webstorm/bin/webstorm.png
MimeType=
Name[zh_CN]=WebStorm
Name=WebStorm
Path=
StartupNotify=true
Terminal=false
Type=Application
X-DBUS-ServiceName=
X-DBUS-StartupType=
X-KDE-SubstituteUID=false
X-KDE-Username=owen

3.設定許可權

gksu chmod +x WebStorm.desktop
記得建立快捷方式的時候,將路徑改為你自己機子上放WebStorm的地方。

PS:需要破解和漢化的,給我留言哈!