From e0a2fbffb9ff7971a717e30886c37f5d74fae2b8 Mon Sep 17 00:00:00 2001 From: Ben Standefer Date: Sun, 18 Feb 2024 12:17:49 -0800 Subject: [PATCH 1/5] Simulating Buffers in "Working without Tabs" section This is in preparation for the option `revealIfOpenInActiveGroup` which is being tracked in https://github.com/microsoft/vscode/issues/204942 and has PR in https://github.com/microsoft/vscode/pull/205442. --- docs/getstarted/userinterface.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/docs/getstarted/userinterface.md b/docs/getstarted/userinterface.md index 501e868561..ec40bff45d 100644 --- a/docs/getstarted/userinterface.md +++ b/docs/getstarted/userinterface.md @@ -382,6 +382,19 @@ Windows/Linux: { "key": "ctrl+w", "command": "workbench.action.closeEditorsInGroup" } ``` +### Simulating Buffers + +If you're coming from buffer-centric editors such as Emacs or vi, you can emulate that workflow with: + +```json +"workbench.editor.showTabs": none, // or 'single' +"workbench.editor.revealIfOpen": true, +"workbench.editor.revealIfOpenInActiveGroup": true, +"workbench.editor.closeEmptyGroups": false, +``` + +VS Code has a model where Editors live hierarchically within Editor Groups, and to split your screen you must use Editor Groups. Using `revealIfOpen` with `revealIfOpenInActiveGroup` causes Quick Open to move already-open Editors into the active Editor Group. This allows you to emulate buffer-centric environments—no tabs, split your screen, and you can view any Editor within any Editor Group without opening a file multiple times. + ## Window management VS Code has some options to control how windows (instances) should be opened or restored between sessions. From ef9d4c10e828bb1948974ba7be740a6317747711 Mon Sep 17 00:00:00 2001 From: Ben Standefer Date: Sun, 18 Feb 2024 12:20:17 -0800 Subject: [PATCH 2/5] Fix typo --- docs/getstarted/userinterface.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/getstarted/userinterface.md b/docs/getstarted/userinterface.md index ec40bff45d..3ec6b02d57 100644 --- a/docs/getstarted/userinterface.md +++ b/docs/getstarted/userinterface.md @@ -387,7 +387,7 @@ Windows/Linux: If you're coming from buffer-centric editors such as Emacs or vi, you can emulate that workflow with: ```json -"workbench.editor.showTabs": none, // or 'single' +"workbench.editor.showTabs": false, // or 'single' "workbench.editor.revealIfOpen": true, "workbench.editor.revealIfOpenInActiveGroup": true, "workbench.editor.closeEmptyGroups": false, From ab2374b303e2484b43ed578f0d8c264fc93c1e98 Mon Sep 17 00:00:00 2001 From: Ben Standefer Date: Sun, 18 Feb 2024 12:23:23 -0800 Subject: [PATCH 3/5] Fix typo --- docs/getstarted/userinterface.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/getstarted/userinterface.md b/docs/getstarted/userinterface.md index 3ec6b02d57..85bcbbaddb 100644 --- a/docs/getstarted/userinterface.md +++ b/docs/getstarted/userinterface.md @@ -387,7 +387,7 @@ Windows/Linux: If you're coming from buffer-centric editors such as Emacs or vi, you can emulate that workflow with: ```json -"workbench.editor.showTabs": false, // or 'single' +"workbench.editor.showTabs": "single", "workbench.editor.revealIfOpen": true, "workbench.editor.revealIfOpenInActiveGroup": true, "workbench.editor.closeEmptyGroups": false, From 2cc96fa106b93fcc4ad494d2ced12e41783e4423 Mon Sep 17 00:00:00 2001 From: Ben Standefer Date: Sun, 18 Feb 2024 12:33:22 -0800 Subject: [PATCH 4/5] Add link to Simulating Buffers --- docs/getstarted/userinterface.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/getstarted/userinterface.md b/docs/getstarted/userinterface.md index 85bcbbaddb..32fa6dc316 100644 --- a/docs/getstarted/userinterface.md +++ b/docs/getstarted/userinterface.md @@ -52,6 +52,8 @@ When you have more than one editor open you can switch between them quickly by h >**Tip:** You can resize editors and reorder them. Drag and drop the editor title area to reposition or resize the editor. +If you like to split your editor window without using tabs see [Simulating Buffers](/docs/getstarted/userinterface.md#simulating-buffers). + ### Split in group You can also split the current editor without creating a new editor group with the **View: Split Editor in Group** command (`kb(workbench.action.splitEditorInGroup)`). To learn more about this editor mode and specific commands for navigating between the two sides, you can read the section in [Custom Layout](/docs/editor/custom-layout.md#split-in-group) topic. From b7b83144eb75ac270f0e56c85e64367e9496e9ba Mon Sep 17 00:00:00 2001 From: Ben Standefer Date: Fri, 24 May 2024 21:47:42 -0700 Subject: [PATCH 5/5] Update setting name In the PR we decided to change the name of this setting to `workbench.editor.moveToActiveGroupIfOpen` --- docs/getstarted/userinterface.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/getstarted/userinterface.md b/docs/getstarted/userinterface.md index 32fa6dc316..2bb6cb3575 100644 --- a/docs/getstarted/userinterface.md +++ b/docs/getstarted/userinterface.md @@ -391,11 +391,11 @@ If you're coming from buffer-centric editors such as Emacs or vi, you can emulat ```json "workbench.editor.showTabs": "single", "workbench.editor.revealIfOpen": true, -"workbench.editor.revealIfOpenInActiveGroup": true, +"workbench.editor.moveToActiveGroupIfOpen": true, "workbench.editor.closeEmptyGroups": false, ``` -VS Code has a model where Editors live hierarchically within Editor Groups, and to split your screen you must use Editor Groups. Using `revealIfOpen` with `revealIfOpenInActiveGroup` causes Quick Open to move already-open Editors into the active Editor Group. This allows you to emulate buffer-centric environments—no tabs, split your screen, and you can view any Editor within any Editor Group without opening a file multiple times. +VS Code has a model where Editors live hierarchically within Editor Groups, and to split your screen you must use Editor Groups. Using `revealIfOpen` with `moveToActiveGroupIfOpen` causes Quick Open to move already-open Editors into the active Editor Group. This allows you to emulate buffer-centric environments—no tabs, split your screen, and you can view any Editor within any Editor Group without opening a file multiple times. ## Window management