https://code.visualstudio.com/docs/python/editing
Go to Definition F12
跳轉到定義
Peek Definition Alt+F12
在當前頁顯示定義
抽取代碼並定義
1.抽取並定義變量
Context Menu: right-click a selection and select Extract Variable.
Command Palette (Ctrl+Shift+P), then Python Refactor: Extract Variable.
2.抽取並定義方法
Context Menu: right-click a selection and select Extract Method.
Command Palette (Ctrl+Shift+P), then Python Refactor: Extract Method.