Forgotten to Commit? Here's a Small Trick!

Forgotten to Commit? Here's a Small Trick!

After a coffee-fuelled coding session the other day, I suddenly released that I had forgotten to commit. Therefore I had multiple changes in a single file that I needed to place into different commits. After a short bit of Googling, I found this useful little feature within VSCode called Stage Selected Ranges.

In short, Stage Selected Ranges lets you pick out certain changes within a file and individually stage them, allowing you to then create separate commits.
Below shows an example.

vscode_select_stage

Subscribe to our newsletter and stay updated.

Don't miss anything. Get all the latest posts delivered straight to your inbox.
Great! Check your inbox and click the link to confirm your subscription.
Error! Please enter a valid email address!