Skip to content

Instantly share code, notes, and snippets.

@zhm
Created May 10, 2025 15:32
Show Gist options
  • Save zhm/bdb4b288d3bc6bad523914889e3cbdc3 to your computer and use it in GitHub Desktop.
Save zhm/bdb4b288d3bc6bad523914889e3cbdc3 to your computer and use it in GitHub Desktop.
Keyboard shortcut to restart TypeScript and ESLint for VSCode and Cursor

Install macros extension

Add this to settings.json, cmd+shift+p Preferences: Open User Settings (JSON)

"macros": {
  "restartTypeScript": [
    "eslint.restart",
    "typescript.restartTsServer"
  ]
}

Add this to your keyboard shortcuts, cmd+shift+p Preferences: Open Keyboard Shortcuts (JSON)

{
  "key": "alt+t",
  "command": "macros.restartTypeScript"
}

Now alt+t will restart TypeScript and ESLint

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment