Add section for selectAndPreserveFocus

This commit is contained in:
Greg Van Liew 2020-07-06 21:10:27 -07:00
Родитель f8c7020786
Коммит c6c98370ee
1 изменённых файлов: 13 добавлений и 6 удалений

Просмотреть файл

@ -53,6 +53,19 @@ Before, the Settings editor could only be used to edit the settings of primitive
![Object setting in the settings editor](images/1_47/object-settings-editor-after.jpg)
### Select and keep focus in a list view
There is a new command, `list.selectAndPreserveFocus`, which lets you select an item from a list, while keeping focus in that list. This can be helpful if you want to select multiple files from a list, such as the File Explorer, without having focus go to the file editor.
The command is not bound to any keyboard shortcut by default, but you can add your own keybinding:
```json
{
"key": "ctrl+o",
"command": "list.selectAndPreserveFocus"
}
```
### List/Tree: Dynamic horizontal scrolling
The previously existing `workbench.list.horizontalScrolling` setting can now be toggled at runtime without forcing to reload the workbench.
@ -458,12 +471,6 @@ New tutorial for [developing C++ applications with CMake](https://code.visualstu
The [Visual Studio Code for Java Pack Installer](https://aka.ms/vscode-java-installer-mac) downloads the necessary dependencies and extensions for Java development in Visual Studio Code on macOS.
## New commands
| Key | Command | Command ID |
| --------------------------------- | ------------------------------ | ----------------------------- |
| `kb(list.selectAndPreserveFocus)` | Open list entry but keep focus | `list.selectAndPreserveFocus` |
## Notable fixes
* [71291](https://github.com/microsoft/vscode/issues/71291): Horizontal scroll breaks rendering in tree