Created
July 14, 2019 03:35
-
-
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)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tell application "System Events" | |
tell process "Code" | |
repeat while window 2 exists | |
click button 1 of window 2 | |
end repeat | |
end tell | |
end tell |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"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