2
A
回答
0
據我所知,在寫這篇文章的時候,Visual Studio代碼沒有這個選項,對不起。
2
在瀏覽默認的keybindings.json文件後,我想我們可以配置它。
首先,從文件>首選項>鍵盤快捷鍵調出密鑰綁定設置文件。
然後在右手邊,粘貼以下代碼:
// Place your key bindings in this file to overwrite the defaults
[
{
"key": "shift+9", // (
"command": "^acceptSelectedSuggestion",
"when": "editorTextFocus && suggestWidgetVisible && suggestionSupportsAcceptOnKey"
},
{
"key": "shift+0", //)
"command": "^acceptSelectedSuggestion",
"when": "editorTextFocus && suggestWidgetVisible && suggestionSupportsAcceptOnKey"
},
{
"key": "shift+,", // <
"command": "^acceptSelectedSuggestion",
"when": "editorTextFocus && suggestWidgetVisible && suggestionSupportsAcceptOnKey"
},
{
"key": "shift+.", // >
"command": "^acceptSelectedSuggestion",
"when": "editorTextFocus && suggestWidgetVisible && suggestionSupportsAcceptOnKey"
},
{
"key": "[",
"command": "^acceptSelectedSuggestion",
"when": "editorTextFocus && suggestWidgetVisible && suggestionSupportsAcceptOnKey"
},
{
"key": "]",
"command": "^acceptSelectedSuggestion",
"when": "editorTextFocus && suggestWidgetVisible && suggestionSupportsAcceptOnKey"
},
{
"key": "space",
"command": "^acceptSelectedSuggestion",
"when": "editorTextFocus && suggestWidgetVisible && suggestionSupportsAcceptOnKey"
},
{
"key": ",",
"command": "^acceptSelectedSuggestion",
"when": "editorTextFocus && suggestWidgetVisible && suggestionSupportsAcceptOnKey"
},
{
"key": "shift+;", // :
"command": "^acceptSelectedSuggestion",
"when": "editorTextFocus && suggestWidgetVisible && suggestionSupportsAcceptOnKey"
},
{
"key": "shift+/", // ?
"command": "^acceptSelectedSuggestion",
"when": "editorTextFocus && suggestWidgetVisible && suggestionSupportsAcceptOnKey"
},
{
"key": ";",
"command": "^acceptSelectedSuggestion",
"when": "editorTextFocus && suggestWidgetVisible && suggestionSupportsAcceptOnKey"
},
{
"key": "=",
"command": "^acceptSelectedSuggestion",
"when": "editorTextFocus && suggestWidgetVisible && suggestionSupportsAcceptOnKey"
},
{
"key": "numpad_add", // +
"command": "^acceptSelectedSuggestion",
"when": "editorTextFocus && suggestWidgetVisible && suggestionSupportsAcceptOnKey"
},
{
"key": "shift+=", // +
"command": "^acceptSelectedSuggestion",
"when": "editorTextFocus && suggestWidgetVisible && suggestionSupportsAcceptOnKey"
},
{
"key": "shift+8", // *
"command": "^acceptSelectedSuggestion",
"when": "editorTextFocus && suggestWidgetVisible && suggestionSupportsAcceptOnKey"
},
{
"key": "numpad_multiply", // *
"command": "^acceptSelectedSuggestion",
"when": "editorTextFocus && suggestWidgetVisible && suggestionSupportsAcceptOnKey"
},
{
"key": "-", // -
"command": "^acceptSelectedSuggestion",
"when": "editorTextFocus && suggestWidgetVisible && suggestionSupportsAcceptOnKey"
},
{
"key": "numpad_subtract", // -
"command": "^acceptSelectedSuggestion",
"when": "editorTextFocus && suggestWidgetVisible && suggestionSupportsAcceptOnKey"
},
{
"key": "/", ///
"command": "^acceptSelectedSuggestion",
"when": "editorTextFocus && suggestWidgetVisible && suggestionSupportsAcceptOnKey"
},
{
"key": "numpad_divide", ///
"command": "^acceptSelectedSuggestion",
"when": "editorTextFocus && suggestWidgetVisible && suggestionSupportsAcceptOnKey"
},
{
"key": "shift+7", // &
"command": "^acceptSelectedSuggestion",
"when": "editorTextFocus && suggestWidgetVisible && suggestionSupportsAcceptOnKey"
},
{
"key": "shift+\\", // |
"command": "^acceptSelectedSuggestion",
"when": "editorTextFocus && suggestWidgetVisible && suggestionSupportsAcceptOnKey"
}
]
保存文件和密鑰綁定應立即生效。
如果您願意,您可以添加更多的提交字符,只需按照該模式。
相關問題
- 1. Visual Studio代碼中沒有「Project」選項
- 2. Visual Studio代碼首選項
- 3. Visual Studio Professional 2015不顯示USQL提交選項,代碼不是彩色格式?
- 4. Visual Studio代碼 - 僅限重複選擇
- 5. 在Visual Studio中是否有「ZIP項目」?
- 6. 請告訴我TAB + TAB在Visual Studio代碼VSCode
- 7. USQL播放選項是否僅限於Visual Studio版本?
- 8. Visual Studio代碼`jsconfig.json`「模塊」選項
- 9. Emberjs項目和Visual Studio/Visual Studio代碼
- 10. 僅在按下ENTER時提交。
- 11. 使用Git Extensions在Visual Studio 2008中提交項目變更
- 12. 在Visual Studio 2015中是否有Visual Basic交互式窗口?
- 13. 是否有可能在mac的新Visual Studio代碼中創建C++項目?
- 14. 我可以僅使用SVN或Mercurial提交部分代碼嗎?
- 15. 是否有可能在Visual Studio 2010的vb.net代碼中使用xml intellisense?
- 16. 在Visual Studio中使用msys shell代碼
- 17. 在Unity3D中使用Visual Studio代碼
- 18. 在Visual Studio中使用VS代碼
- 19. Visual Studio代碼或monodevelop?
- 20. 在帶有單選按鈕的窗體上使用ENTER提交
- 21. 僅在Silverlight中的Click或Enter鍵上選擇ListBox項目
- 22. Visual Studio代碼使用dotnet cli監視選項進行調試
- 23. Visual Studio代碼是否爲Javascript提供intellisense而無需打字?
- 24. Visual Studio代碼在格式化C#代碼時刪除所有選項卡
- 25. 是否有可能在C#編寫visual studio代碼插件?
- 26. 如何僅使用tasks.json鏈接Visual Studio代碼中的任務?
- 27. 僅在使用Visual Studio進行調試時執行代碼
- 28. 在觸發器按鍵TAB上的Visual Studio代碼中創建代碼片段?
- 29. python raw_input使用TAB而不是ENTER?
- 30. 是否有任何從Visual Studio項目中編譯CIL代碼的示例
不夠感謝你!還加了'.'。 – Rudy