Stage only part of a file from the diff editor.
Section: Source Control Basics
Stage selected ranges
text
text
Select lines in diff editor and use Stage Selected RangesLearn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Source Control Basics
Open file diff from Source Control
Review changed files directly in diff view.
Use merge conflict actions
Accept current, incoming, or both changes inline.