![](/img/trans.png)
[英]Is there a way to wrap background color around text in react-native?
[英]Is there a VSCode shortcut to wrap text in a react/react-native fragment?
我發現自己經常使用片段,並希望使用鍵盤快捷鍵來使其更容易。
將此添加到keybindings.json
{
"key": "ctrl+k f", // 👈 whatever binding you want. obv.
"command": "editor.action.insertSnippet",
"when": "editorTextFocus",
"args": {
"snippet": "<$1>${TM_SELECTED_TEXT}</$1>"
}
}
獎勵...如果需要,光標可以輸入任何其他組件的名稱。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.