I've found the following to be a simple, successful mix of the previous answers. I've added additional instructions for those unfamiliar with keyboard shortcuts:
Open "Preferences: Open Keyboard Shortcuts (JSON)".
Add these entries to the JSON:
{
"key": "alt+[ArrowLeft]",
"command": "workbench.action.increaseViewSize"
},
{
"key": "alt+[ArrowRight]",
"command": "workbench.action.decreaseViewSize"
},
Save changes.
Click alt/option key (⎇) and left arrow (←).
Verify sidebar decreases in size.
Click alt/option key (⎇) and right arrow (→)
Verify sidebar increases in size.
If your sidebar is on the right, consider swapping the commands in the shortcuts you add.
Benefits:
runCommands
)