Skip to content

Commit e0a2fbf

Browse files
authored
Simulating Buffers in "Working without Tabs" section
This is in preparation for the option `revealIfOpenInActiveGroup` which is being tracked in microsoft/vscode#204942 and has PR in microsoft/vscode#205442.
1 parent c5995c0 commit e0a2fbf

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

docs/getstarted/userinterface.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,19 @@ Windows/Linux:
382382
{ "key": "ctrl+w", "command": "workbench.action.closeEditorsInGroup" }
383383
```
384384

385+
### Simulating Buffers
386+
387+
If you're coming from buffer-centric editors such as Emacs or vi, you can emulate that workflow with:
388+
389+
```json
390+
"workbench.editor.showTabs": none, // or 'single'
391+
"workbench.editor.revealIfOpen": true,
392+
"workbench.editor.revealIfOpenInActiveGroup": true,
393+
"workbench.editor.closeEmptyGroups": false,
394+
```
395+
396+
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.
397+
385398
## Window management
386399

387400
VS Code has some options to control how windows (instances) should be opened or restored between sessions.

0 commit comments

Comments
 (0)