vscode:打开文件,而不是从快速打开中预览文件 [英] vscode: Open file instead of previewing file from quick open

查看:1180
本文介绍了vscode:打开文件,而不是从快速打开中预览文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我打开命令面板( Ctrl Cmd + P )时,输入文件名并按 Enter ,该文件将自动以预览模式打开.

When I open up the Command Palette (Ctrl or Cmd + P), type in a filename and hit Enter, the file will automatically be opened in Preview mode.

我想要的是可以从命令面板永久打开文件的选项.我知道"workbench.editor.enablePreviewFromQuickOpen"设置,但这将禁用预览模式.

What I want is to have an option to open a file permanently from the Command Palette. I am aware of the "workbench.editor.enablePreviewFromQuickOpen" settings, but that will disable Preview mode.

例如,在命令面板中选择一个文件,然后按 Ctrl + Enter ,将在新的拆分"视图中以预览"打开文件.我正在寻找类似的快捷方式来永久打开文件.

For example, selecting a file in the Command Palette and hitting Ctrl + Enter will open the file as Preview in a new Split view. I am looking for a similar shortcut to open a file permanently.

更正:我的意思是使用 Cmd + P / Ctrl + P的 Quick Look 模式. 命令面板用于运行命令,无法搜索或打开文件.

Correction: I meant the Quick Look mode using Cmd + P / Ctrl + P. The Command Palette is used to run commands, and cannot search or open files.

推荐答案

突出显示文件时,只需按向右箭头即可. Command Palette完全保留在原位置,并且文件在后台打开(以非预览方式).您可以根据需要多次执行此操作.

Just press the Right arrow when your file is highlighted. The Command Palette stays exactly where it is and your file opens (in non-preview) in the background. You can do this as many times as you like.

这篇关于vscode:打开文件,而不是从快速打开中预览文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆