1.install plugin

# 左邊列表的extension搜尋python,選擇下載數最高的
# 或是打ctrl + p,輸入ext install python,選擇下載數最高的
# 裝完後記得案reload

2.flake8 configuration

>> pip install flake8
# 安裝flake8之後寫python的時候vscode會提示哪裡出錯,格式不正確也會提示
ctrl + shift + p # 點選user setting
在settings.json 輸入 "python.linting.flake8Enabled": true

3.yapf configuration

>> pip install yapf
# 安裝yapf之後在vscode中按Alt+Shift+F就可以做到自動排版

4.tips

1. check function or class definition
- ctrl加左鍵,即可跳到定義處
- 點選function或class按f12也可
2. 在第幾行的旁邊點擊就可以設置斷點作測試

results matching ""

    No results matching ""