質問編集履歴
3
pp
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
Visual Studio Codeでhtmlタグのキーボードショートカットを作成したい。
|
test
CHANGED
File without changes
|
2
:
test
CHANGED
File without changes
|
test
CHANGED
@@ -46,7 +46,7 @@
|
|
46
46
|
|
47
47
|
その①["ctrl+e"]で<br>が入力される。
|
48
48
|
|
49
|
-
その②["ctrl+
|
49
|
+
その②["ctrl+o"]で<p></p>が入力される。
|
50
50
|
|
51
51
|
|
52
52
|
|
1
ええ
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
Visual Studio Codeでhtmlタグのキーボードショートカットを作成したい。
|
1
|
+
えVisual Studio Codeでhtmlタグのキーボードショートカットを作成したい。
|
test
CHANGED
@@ -51,3 +51,65 @@
|
|
51
51
|
|
52
52
|
|
53
53
|
もちろん、これ以外に解決できる方法があればそれでもかまいません、ご教示をお願いします。
|
54
|
+
|
55
|
+
|
56
|
+
|
57
|
+
|
58
|
+
|
59
|
+
---
|
60
|
+
|
61
|
+
追記(解決ソース)
|
62
|
+
|
63
|
+
|
64
|
+
|
65
|
+
|
66
|
+
|
67
|
+
【keybindings.json】
|
68
|
+
|
69
|
+
```json
|
70
|
+
|
71
|
+
[
|
72
|
+
|
73
|
+
{
|
74
|
+
|
75
|
+
"key": "ctrl+shift+a",
|
76
|
+
|
77
|
+
"command": "editor.emmet.action.balanceOut"
|
78
|
+
|
79
|
+
},
|
80
|
+
|
81
|
+
{
|
82
|
+
|
83
|
+
"key": "ctrl+e",
|
84
|
+
|
85
|
+
"command": "type",
|
86
|
+
|
87
|
+
"args": {
|
88
|
+
|
89
|
+
"text": "<br>"
|
90
|
+
|
91
|
+
},
|
92
|
+
|
93
|
+
"when": "editorTextFocus"
|
94
|
+
|
95
|
+
},
|
96
|
+
|
97
|
+
{
|
98
|
+
|
99
|
+
"key": "ctrl+o",
|
100
|
+
|
101
|
+
"command": "type",
|
102
|
+
|
103
|
+
"args": {
|
104
|
+
|
105
|
+
"text": "<p></p>"
|
106
|
+
|
107
|
+
},
|
108
|
+
|
109
|
+
"when": "editorTextFocus"
|
110
|
+
|
111
|
+
}
|
112
|
+
|
113
|
+
]
|
114
|
+
|
115
|
+
```
|