VS Code - Possible to switch tabs/files with cmd+numbers?

前端 未结 2 938
深忆病人
深忆病人 2021-01-31 07:44

I started using Visual Studio Code today (I\'ve been using Atom and Sublime for years).

In Atom/Sublime (and Chrome, Firefox, etc...) you can go to another open tab wit

相关标签:
2条回答
  • 2021-01-31 08:37

    The answer from Ginfuru above still works fine, but if you want more things in VSC to behave like Atom, I can also recommend this extension: Atom Keymap, that ports popular Atom keyboard shortcuts to VSC.

    0 讨论(0)
  • 2021-01-31 08:46

    Yeah this is possible.

    Preferences -> Keyboard Shortcuts -> Click keybindings.json

    { "key": "cmd+1","command": "workbench.action.openEditorAtIndex1" },
    { "key": "cmd+2","command": "workbench.action.openEditorAtIndex2" },
    { "key": "cmd+3","command": "workbench.action.openEditorAtIndex3" },
    { "key": "cmd+4","command": "workbench.action.openEditorAtIndex4" },
    { "key": "cmd+5","command": "workbench.action.openEditorAtIndex5" },
    { "key": "cmd+6","command": "workbench.action.openEditorAtIndex6" },
    { "key": "cmd+7","command": "workbench.action.openEditorAtIndex7" },
    { "key": "cmd+8","command": "workbench.action.openEditorAtIndex8" },
    { "key": "cmd+9","command": "workbench.action.openEditorAtIndex9" }
    
    0 讨论(0)
提交回复
热议问题