8.4:今天有点摸,干脆学学VS Code里有没有我还不知道的小技巧。
alt+shift+left/right
:Shrink/expand selection
F12
:跳转定义(按下ctrl+p
后输入@
可以浏览所有定义)
alt+F12
:速览2定义
F2
:重命名符号!!!
alt+left
:回到先前的位置
重构
https://code.visualstudio.com/docs/editor/refactoring
https://code.visualstudio.com/docs/python/editing#_refactoring
很好用的功能。
可以批量重命名变量、将重复语句变成函数/变量。