by submeta · 5y ago · 0 comments
In the Source Control window, select your file then in the right panel:
- Select the first range of lines
- Alt + select the second range of lines
- Cmd + Shift + P > "Git: Stage Selected Ranges"
or in multiple steps (I usually do it like that):
- Select the first range of lines
- Cmd + Shift + P > "Git: Stage Selected Ranges"
- Select the second range of lines
- Cmd + Shift + P > "Git: Stage Selected Ranges"
Hopefully that's just because VSCode didn't allow arbitrary widgets until recently. Presumably they're working on it.
[0] https://marketplace.visualstudio.com/items?itemName=mhutchie...