Skip to content

Instantly share code, notes, and snippets.

@shrwnsan
Forked from adamhill/gist:a584dffc61c4ad66423bf67904a53c95
Last active March 29, 2025 11:19
Show Gist options
  • Save shrwnsan/1d8cdff07aab0aefa800e95ea781c0d5 to your computer and use it in GitHub Desktop.
Save shrwnsan/1d8cdff07aab0aefa800e95ea781c0d5 to your computer and use it in GitHub Desktop.
VS Code Diff Settings
// Place your key bindings in this file to override the defaults
[
{
// Toggle terminal
"key": "ctrl+m",
"command": "editor.action.toggleMinimap"
},
{
// Toggle terminal
"key": "ctrl+shift+s",
"command": "workbench.view.scm"
}
]
{
// Enable the minimap to show change indicators alongside your code.
"editor.minimap.enabled": true,
// Show Git decorations in editors, file explorer, and other UI elements.
"git.decorations.enabled": true,
// Configure the diff editor to show changes side by side for better visualization.
"diffEditor.renderSideBySide": true,
// Enable CodeLens in diff views for additional context about changes.
"diffEditor.codeLens": true,
// Show line changes in the editor gutter (left margin).
"scm.diffDecorations": "all",
// Control the visibility of diff decorations in the gutter.
"scm.diffDecorationsGutterVisibility": "always"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment