Skip to content

Instantly share code, notes, and snippets.

View PabloLION's full-sized avatar
🔍
Looking for half-time job

Pablo LION PabloLION

🔍
Looking for half-time job
  • Barcelona, Spain
View GitHub Profile
@PabloLION
PabloLION / vscode-shift-enter-newline.md
Last active October 9, 2025 05:09
Fixing Shift+Enter newline in VS Code terminal (Claude Code)

Fixing Shift+Enter newline in VS Code terminal (Claude Code)

While exploring Claude Code’s /terminal-setup command (found via a /sta fuzzy search in v1.0.111), I noticed the default Shift+Enter binding for terminal input inserts an unwanted backslash before the newline.

Claude Code currently drops its keybinding into the standard VS Code profile (for example, ~/Library/Application Support/Code/User/keybindings.json on macOS). I spend most of my time in VS Code Insiders, so I copied the entry into ~/Library/Application Support/Code - Insiders/User/keybindings.json to make the shortcut available there, too.

Problematic binding

{
@PabloLION
PabloLION / claude-sonnet-4-5-workflow-update.md
Created October 1, 2025 13:09
Update Claude Workflows to Claude Sonnet 4.5

Update GitHub Claude Workflows to Sonnet 4.5

Tell this to your Claude Code or Codex Cloud


Summary

  • Both Claude automation workflows explicitly request the claude-sonnet-4-5-20250929 model when calling anthropics/claude-code-action@v1, ensuring consistent behavior across general and review scenarios.
@albertorestifo
albertorestifo / propdiff.js
Created April 12, 2017 15:55
Logs the diff between current and previous props on a react element
componentDidUpdate(prevProps) {
console.log('Rrow update diff:');
const now = Object.entries(this.props);
const added = now.filter(([key, val]) => {
if (prevProps[key] === undefined) return true;
if (prevProps[key] !== val) {
console.log(`${key}
- ${JSON.stringify(val)}