天天看點

Eclipse安裝python、shell開發插件1、安裝python運作環境2、安裝shell運作環境

1、安裝python運作環境

Eclipse安裝python、shell開發插件1、安裝python運作環境2、安裝shell運作環境

python插件位址: http://pydev.org/updates

Eclipse安裝python、shell開發插件1、安裝python運作環境2、安裝shell運作環境

安裝後重新開機即可看到python腳本内容已經高亮、、、、ok了

Eclipse安裝python、shell開發插件1、安裝python運作環境2、安裝shell運作環境

2、安裝shell運作環境

1、安裝“man-page viewer”插件(ShellEd需要,有的機器不需要,先裝上)

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

Eclipse安裝python、shell開發插件1、安裝python運作環境2、安裝shell運作環境

2、安裝“shelled”插件

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

Eclipse安裝python、shell開發插件1、安裝python運作環境2、安裝shell運作環境

這個包十分的難以下載下傳,下面是我下載下傳後上傳的位址:

https://download.csdn.net/download/zs319428/11664760

以archive,即zip包的方式設定資料源:

Eclipse安裝python、shell開發插件1、安裝python運作環境2、安裝shell運作環境
Eclipse安裝python、shell開發插件1、安裝python運作環境2、安裝shell運作環境

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

Eclipse安裝python、shell開發插件1、安裝python運作環境2、安裝shell運作環境
Eclipse安裝python、shell開發插件1、安裝python運作環境2、安裝shell運作環境

有的eclipse預設是用eclipse自帶的text editor打開shell檔案的,安裝了shelled之後,可以修改使用shelled預設打開*.sh檔案,如果沒有*.sh這個選項,可以在右邊add按鈕手工添加一個:

Eclipse安裝python、shell開發插件1、安裝python運作環境2、安裝shell運作環境

3、安裝可以直接在windows的eclipse運作shell的解釋器interpreter

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

(上面我的那個csdn資源包中已包含這個檔案https://download.csdn.net/upload/11664760)

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

Eclipse安裝python、shell開發插件1、安裝python運作環境2、安裝shell運作環境

通過添加的方式設定shell解釋器,直接標明解壓後目錄中的sh.exe即可。

然後寫一個shell測試一下是否能運作:

Eclipse安裝python、shell開發插件1、安裝python運作環境2、安裝shell運作環境
Eclipse安裝python、shell開發插件1、安裝python運作環境2、安裝shell運作環境

目前隻發現可以用run的方式運作,debug好像不可以,不過也友善我們調試了、、、、、、到這裡就成功了

shell檔案最終是要在linux運作的,在windows的eclipse中運作shell最多隻能用來調試,解除一些基本的BUG,大家在這裡開發完一定要在Linux下再測試一下。