visual-studio-code - vscode : Open file instead of previewing file from quick open

标签 visual-studio-code keyboard-shortcuts

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

永久打开文件

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

例如,在命令面板中选择一个文件并按 Ctrl + Enter 将在新的拆分 View 中打开该文件作为预览。我正在寻找类似的快捷方式来永久打开文件。

编辑 1

更正:我的意思是 快速查看 模式使用 Cmd + P/Ctrl + P。命令面板用于运行命令,不能搜索或打开文件。

最佳答案

当您的文件突出显示时,只需按向右箭头即可。命令面板保持原样,您的文件在后台打开(非预览)。您可以根据需要多次执行此操作。

关于visual-studio-code - vscode : Open file instead of previewing file from quick open,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47249180/

相关文章:

json - Visual Studio Code (Ruby) 未捕获的异常 - 无法加载此类文件

java - 如何在 Visual Studio 代码中快速生成构造函数和 getter、setter?

visual-studio-code - VSCode : Store and reopen a group of file tabs so that I reset a specific environment in the future

intellij-idea - 禁用 Linux Mint Alt-F1 快捷方式

c++ - 包含 OpenCV 时的 Visual Studio Code "cannot open source file"错误

c++ - VS Code 无法打开 "PROBLEMS"选项卡中的文件,因为路径构造错误

replace - Notepad++ 中“查找/替换”对话框中“全部替换”按钮的键盘快捷方式?

visual-studio - 如何在 Visual Studio 2010 的解决方案资源管理器中找到文件?

jquery - ESC 关闭 JS 菜单

python - 使用 Python 2.6 设置全局热键