I have been trying for awhile now to remap the Ctrl+Tab and Ctrl+Shift+Tab keys to switch editor tabs linearly. (Like they would in Chrome)
I have learned that by default, the Ctrl+PgUp and Ctrl+PgDown keys have the functionality I desire. However, whether it be through the graphical Keyboard Shortcut page or the keybindings.json
file, I cannot get the keys to do what I want them to.
相关部分keybindings.json
:
{
"key": "ctrl+pagedown",
"command": "-selectNextPageSuggestion"
},
{
"key": "ctrl+pageup",
"command": "-selectPrevPageSuggestion"
},
{
"key": "ctrl+tab",
"command": "-workbench.action.openNextRecentlyUsedEditorInGroup"
},
{
"key": "ctrl+shift+tab",
"command": "-workbench.action.openPreviousRecentlyUsedEditorInGroup"
},
{
"key": "ctrl+tab",
"command": "selectNextPageSuggestion"
},
{
"key": "ctrl+shift+tab",
"command": "selectPrevPageSuggestion"
}
Theoretically, I believe that this should work, but it only disables the Ctrl+Tab and Ctrl+Shift+Tab keys entirely, and doesn't give them the Ctrl+PgUp and Ctrl+PgDown behavior that I am after.
任何帮助表示赞赏。