跳至主要内容

VS Code 快速鍵

Descriptionhot key
行複製Shift + Alt + Up/Down
line move up/downAlt + up/down
previous/next editingAlt + left/right
variable renameF2
code formattingShift + Alt + F
delete lineCtrl + x
jump to implementationF12

其他操作

  • Organize imports:
    • 點小燈泡 > Remove all the unused imports
    • 點小燈泡 > Expand glob import
    • 點小燈泡 > Remove the whole 'use' item