Skip to content

Commit 8d30866

Browse files
committed
fix(vscode-keybind): enhance keyboard shortcuts documentation with setup instructions
- Add command names for keybind display shortcuts - Add section for adding custom keybindings with JSON examples - Include when clause context configuration guidance - Add sections for overriding and disabling keybindings
1 parent 9d4ba33 commit 8d30866

File tree

1 file changed

+30
-3
lines changed

1 file changed

+30
-3
lines changed

docs/source/vscode/vscode-keybind.md

Lines changed: 30 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,36 @@
11
# キーバインドを表示したい(``command+k`` + ``command+s``
22

3-
- {kbd}`command + k` + {kbd}`command + s`
4-
- {kbd}`command + k` + {kbd}`command + r`
3+
- {kbd}`command+k` + {kbd}`command+s`: `Preferences: Open Keyboard Shortcuts`
4+
- {kbd}`command+k` + {kbd}`command+r`: `Help: Keyboard Shortcuts Reference`
55

6-
## キーバインドを削除したい
6+
## キーバインドを追加したい
7+
8+
```json
9+
[
10+
{
11+
"key": "...",
12+
"command": "...",
13+
"when": "..."
14+
},
15+
]
16+
```
17+
18+
キーバインド設定は`keybindings.json`に上記のJSON形式で追加できます。
19+
`key`フィールドにショートカットキー、
20+
`command`フィールドに実行するコマンド、
21+
`when`フィールドには実行時の条件(=コンテクスト)を記述します。
22+
23+
:::{note}
24+
25+
`when`フィールドの設定はオプションですが、
26+
カスタムのキーバインドを設定する場合には、
27+
なるべくコンテクストを制限しておくほうが安全です。
28+
29+
:::
30+
31+
## キーバインドを上書きしたい
32+
33+
## キーバインドを無効にしたい
734

835
```json
936
{

0 commit comments

Comments
 (0)