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 second range of lines
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"