Skip to content

Commit 2f4dab4

Browse files
committed
Update shift+escape to Hide Active Tool Window
Perform the equivalent of IntelliJ ‘Hide Active Tool Window’ by hiding each of the sidebar, secondary sidebar or panel when focused. Implements https://www.jetbrains.com/help/idea/tool-windows.html#hide_active
1 parent 7a9a83c commit 2f4dab4

File tree

3 files changed

+17
-53
lines changed

3 files changed

+17
-53
lines changed

README.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -153,12 +153,7 @@ alt+right | ctrl+right | Go to next editor tab | ✅
153153
N/A | shift+cmd+] | Go to next editor tab | ✅
154154
f12 | f12 | Go back to previous tool window | N/A
155155
escape | escape | Go to editor (from tool window) | N/A
156-
shift+escape | shift+escape | Hide active or last active window (Sidebar) | ✅
157-
shift+escape | shift+escape | Hide active or last active window (Output) | ✅
158-
shift+escape | shift+escape | Hide active or last active window (Problems) | ✅
159-
shift+escape | shift+escape | Hide active or last active window (Debug Console) | ✅
160-
shift+escape | shift+escape | Hide active or last active window (Terminal) | ✅
161-
shift+escape | shift+escape | Hide active or last active window (Panel) | N/A
156+
shift+escape | shift+escape | Hide Active Tool Window | ✅
162157
ctrl+shift+f4 | cmd+shift+f4 | Close active run/messages/find/... tab | N/A
163158
ctrl+shift+' | cmd+shift+' | Maximize Tool Window (Problems, Output, Debug Console, Terminal) | ✅
164159
ctrl+g | cmd+l | Go to line | ✅

package.json

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -838,31 +838,24 @@
838838
"key": "shift+escape",
839839
"mac": "shift+escape",
840840
"command": "workbench.action.toggleSidebarVisibility",
841-
"when": "!editorFocus && !terminalFocus && !problemFocus && !inDebugRepl",
842-
"intellij": "Hide active or last active window (Sidebar)"
843-
},
844-
845-
{
846-
"key": "shift+escape",
847-
"mac": "shift+escape",
848-
"command": "workbench.actions.view.problems",
849-
"intellij": "Hide active or last active window (Problems)"
841+
"when": "sideBarFocus",
842+
"intellij": "Hide Active Tool Window"
850843
},
851844
{
852845
"key": "shift+escape",
853846
"mac": "shift+escape",
854-
"command": "workbench.debug.action.toggleRepl",
855-
"when": "debuggersAvailable",
856-
"intellij": "Hide active or last active window (Debug Console)"
847+
"command": "workbench.action.toggleAuxiliaryBar",
848+
"when": "auxiliaryBarFocus",
849+
"intellij": "Hide Active Tool Window"
857850
},
858851
{
859852
"key": "shift+escape",
860853
"mac": "shift+escape",
861-
"command": "workbench.action.terminal.toggleTerminal",
862-
"intellij": "Hide active or last active window (Terminal)"
854+
"command": "workbench.action.togglePanel",
855+
"when": "panelFocus",
856+
"intellij": "Hide Active Tool Window"
863857
},
864858

865-
866859
{
867860
"key": "ctrl+shift+'",
868861
"mac": "cmd+shift+'",

src/package-with-comment.json

Lines changed: 8 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1079,47 +1079,23 @@
10791079
"key": "shift+escape",
10801080
"mac": "shift+escape",
10811081
"command": "workbench.action.toggleSidebarVisibility",
1082-
"when": "!editorFocus && !terminalFocus && !problemFocus && !inDebugRepl",
1083-
"intellij": "Hide active or last active window (Sidebar)"
1082+
"when": "sideBarFocus",
1083+
"intellij": "Hide Active Tool Window"
10841084
},
1085-
/*
10861085
{
10871086
"key": "shift+escape",
10881087
"mac": "shift+escape",
1089-
"command": "workbench.action.output.toggleOutput",
1090-
"when": "outputFocus",
1091-
"intellij": "Hide active or last active window (Output)"
1088+
"command": "workbench.action.toggleAuxiliaryBar",
1089+
"when": "auxiliaryBarFocus",
1090+
"intellij": "Hide Active Tool Window"
10921091
},
1093-
*/
10941092
{
10951093
"key": "shift+escape",
10961094
"mac": "shift+escape",
1097-
"command": "workbench.actions.view.problems",
1098-
"intellij": "Hide active or last active window (Problems)"
1095+
"command": "workbench.action.togglePanel",
1096+
"when": "panelFocus",
1097+
"intellij": "Hide Active Tool Window"
10991098
},
1100-
{
1101-
"key": "shift+escape",
1102-
"mac": "shift+escape",
1103-
"command": "workbench.debug.action.toggleRepl",
1104-
"when": "debuggersAvailable",
1105-
"intellij": "Hide active or last active window (Debug Console)"
1106-
},
1107-
{
1108-
"key": "shift+escape",
1109-
"mac": "shift+escape",
1110-
"command": "workbench.action.terminal.toggleTerminal",
1111-
"intellij": "Hide active or last active window (Terminal)"
1112-
},
1113-
/*
1114-
{
1115-
"key": "shift+escape",
1116-
"mac": "shift+escape",
1117-
"command": "",
1118-
"when": "panelVisible",
1119-
"intellij": "Hide active or last active window (Panel)",
1120-
"todo": "not support panelVisible VS Code #14779"
1121-
},
1122-
*/
11231099
/*
11241100
{
11251101
"key": "ctrl+shift+f4",

0 commit comments

Comments
 (0)