close

每次重新安裝都要做一翻設定,為了以後的便利性,記錄了一套我可以使用的流程,多數內容為直接轉載,若有侵權,請與我聯繫刪除,謝謝~

1. 安裝Visual Studio Code主程式(以下簡稱VSCode)    https://code.visualstudio.com/download

2. 將VSCode介面中文化    https://wcc723.github.io/development/2019/12/01/vscode-chinese/

3. 安裝Python    https://www.python.org/downloads/

不更改安裝路徑的話就一路按下一步即可,新版的Python好像會自動將路徑加入到Path中(?)

4. 在VSCode上安裝 Python 延伸模組

image

5. 安裝Code Runner套件

image

6. 設定自動儲存

【Ctrl】+,(逗點)    打開設定,在搜尋設定欄位中輸入"autosave",然後根據你的需求選擇自動儲存選項,下圖是我的設定,一秒自動儲存一次。

image

7. 在電腦中建置一個專門存放程式碼與相關設定的資料夾

"檔案">>"開啟資料夾">>進入你建置的資料夾中

新增一個以".py"為副檔名的檔案

image

輸入print("hello"),按右上角的三角形選"Run Code"執行程式

image

然後右下角會出現"Linter pylint is not installed."的錯誤訊息,

選擇"Install"安裝~

image

安裝完後再選擇右上角三角形,選"在終端機中執行Python檔案",

就可以在下方選終端機,看到我們要輸出的hello了~

image

 

後續設定未來補上。

 

參考網址

1. 安裝 Python 3    https://docs.microsoft.com/zh-tw/learn/modules/python-install-vscode/3-exercise-install-python3?pivots=windows

2. Visual Studio Code Python環境建置    https://www.learncodewithmike.com/2019/11/python2-visual-studio-code-python.html

3. Visual Studio Code高效開發----自動儲存設定方法    https://www.itread01.com/p/632914.html

 

 

 

arrow
arrow
    文章標籤
    Visual Studio Code 軟體安裝
    全站熱搜

    jane8366608 發表在 痞客邦 留言(0) 人氣()