Skip to content

Instantly share code, notes, and snippets.

@abdumu
Created July 14, 2019 03:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abdumu/ea26f0a0e109ff176b482c77ee06c0b7 to your computer and use it in GitHub Desktop.
Save abdumu/ea26f0a0e109ff176b482c77ee06c0b7 to your computer and use it in GitHub Desktop.
Close all VSCode windows except current window (make sure terminal tab is visible)
tell application "System Events"
tell process "Code"
repeat while window 2 exists
click button 1 of window 2
end repeat
end tell
end tell
[
{
"key": "shift+c",
"command": "workbench.action.terminal.sendSequence",
"args":{"text": "osascript ~/.vscode/closeall.scpt\u000D"},
"when": "terminalFocus && !terminalTextSelected"
},
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment