爲eclipse安裝python、shell開發環境和SVN插件

eclipse是一個很是好用的IDE,一般來講咱們都用eclipse來開發JAVA程序,爲了讓開發python、shell等腳本也能在eclipse上運行,出現了不少相關的插件:html

  • python:pydev
  • shell:shelled
  • svn:Subclipse
  • PHP:PDT

使用eclipse過程當中能夠多搜一搜網上的插件,有些能大幅提升開發效率,本文以開發linux環境下的python、shell腳本爲背景,安裝了eclipse並在其上裝上了開發python、shell、svn插件,其中shell插件能夠指定shell解釋器,這樣就能在windows下的eclispe中直接運行shell程序。java

1、下載並安裝jdk

地址:http://www.oracle.com/technetwork/java/javase/downloads/index.htmlpython

因爲我是64位機器,因此下載了X64的JDKlinux

2、安裝JAVA、python、shell開發利器eclipse

使用Eclipse Standard 4.3便可shell

地址:http://www.eclipse.org/downloads/windows

打開eclipse,設定JDK地址:bash

image

3、安裝開發python的eclipse插件pydev

地址:http://pydev.org/oracle

image

輸入pydev的可用更新站地址:eclipse

優先: http://pydev.org/updatessvn

可選: http://pydev.org/nightly

image

安裝完能夠打開pydev視圖,發現python文件已經語法高亮。

image

4、安裝開發shell的eclipse插件shelled

地址:http://sourceforge.net/projects/shelled/

一、安裝「man-page viewer」插件(ShellEd須要,有的機器不須要,先裝上)

安裝地址:http://download.eclipse.org/technology/linuxtools/updates-nightly/

image

二、安裝「shelled」插件

http://sourceforge.net/projects/shelled/files/latest/download下載ShellEd的zip包

image

以archive,即zip包的方式設置數據源:

image

image

在shell文件上點右鍵->open with->選擇shell script Editor,發現打開的SHELL的文件已經語法高亮:

image

有的eclipse默認是用eclipse自帶的text editor打開shell文件的,安裝了shelled以後,能夠修改使用shelled默認打開*.sh文件,若是沒有*.sh這個選項,能夠在右邊add按鈕手工添加一個:

image

三、安裝能夠直接在windows的eclipse運行shell的解釋器interpreter

在windows下運行shell有不少方法,CygWin感受太笨重了,這裏推薦兩個工具:

http://win-bash.sourceforge.net/
http://unxutils.sourceforge.net/

下載第一個,解壓到指定目錄,而後打開eclipse:

image

經過添加的方式設置shell解釋器,直接選定解壓後目錄中的sh.exe便可。

而後寫一個shell測試一下是否能運行:

image

shell文件最終是要在linux運行的,在windows的eclipse中運行shell最多隻能用來調試,解除一些基本的BUG,你們在這裏開發完必定要在Linux下再測試一下。

5、安裝管理svn的eclipse插件Subclipse

地址:http://subclipse.tigris.org/,在該頁面選擇image

界面中給出了多種安裝方式,本文采用Eclipse update site URL:http://subclipse.tigris.org/update_1.10.x的方式安裝。

image

安裝成功後能夠使用右鍵->import從SVN導入項目

image

若是對文件作了更改,或者增、刪操做,在文件或者目錄上右鍵->Team,能夠看到SVN的一些選項:

image

 

相關文章
相關標籤/搜索