如何在CMD中開啟Sublime Text3

1.找到Sublime Text3的安裝路徑

#以我自己的電腦為例,是安裝在以下路徑
C:\Program Files\Sublime Text 3

2.將路徑加到環境變數中

參考本文作設定(不同路徑間是透過;分開的)貼上路徑後記得重新開機讓環境變數生效

3.在CMD中執行Sublime Text3

subl         #執行Sublime Text3
subl a.py #創建a.py檔案,並以Sublime Text3開啟進行編輯(如果檔案存在就 直接編輯a.py)

Written by

Machine Learning / Deep Learning / Python / Flutter cakeresume.com/yanwei-liu

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store