Keyboard shortcut to take file out of preview mode in VSCode

前端 未结 3 541
眼角桃花
眼角桃花 2020-12-09 14:22

If I quick open a file using the quick open menu, is there a keyboard shortcut that will take the opened file outside of preview mode so that when I open a

相关标签:
3条回答
  • 2020-12-09 15:08

    As of v1.19 (released in December 2017) Alt+Enter opens the file (after Ctrl+P) NOT in preview mode but in a "permanent", touched status.

    Related question: How do I configure Visual Studio Code to open files always in a new tab?

    0 讨论(0)
  • 2020-12-09 15:10

    If you would rather open the file directly from Quick Open (skipping the preview mode altogether), you can change this in the settings or add this to settings.json:

    "workbench.editor.enablePreviewFromQuickOpen": false
    

    If you want to disable previews for other means of opening files (like the project explorer), this will do the trick:

    "workbench.editor.enablePreview": false
    
    0 讨论(0)
  • 2020-12-09 15:18

    Try the View: Keep Editor command (default shortcut Ctrl+K, Enter):

    Note: this shortcut is a chord, meaning that Enter must be pressed after releasing Ctrl+K.

    0 讨论(0)
提交回复
热议问题