上一个文件作为quickopen上的第一个条目 [英] Previous file as first entry on quickopen

查看:72
本文介绍了上一个文件作为quickopen上的第一个条目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用quickopen时,它将作为第一个条目向您显示当前正在编辑的文件.例如,在IntelliJ中,它将显示您先前打开的文件,这使得可以使用quickopen + enter快速在2个文件之间交换.

vsc中是否可以选择使用它?我真的不明白,为什么您将当前文件作为第一个条目,您不太可能再次打开同一文件,或者我错过了它的原因?

解决方案

现在请参阅 :VS命令:如何配置转到文件"命令以自动选择先前的文件(例如Sublime)

2017年10月,在vscode:workbench.action.quickOpenPreviousEditor中添加了一个命令,该命令可以像这样在键绑定中使用:

{
  "key": "ctrl+p",
  "command": "-workbench.action.quickOpen"
},
{
  "key": "ctrl+p",  // or cmd
  "command": "workbench.action.quickOpenPreviousEditor"
}

When you use quickopen, it will show you the file you are currently editing as the first entry. In for example IntelliJ it will show you the file you previously opened, which makes it possible to quickly swap between 2 files using quickopen + enter.

Is there any option to have this in vsc either? I dont really get, why you would have the current file as the first entry, its rather unlikely you are going to open the same file again or am I missing a reason for it?

解决方案

Now see VS Code: How to configure Go to File command to auto-select the previous file (like Sublime)

A command was added to vscode: workbench.action.quickOpenPreviousEditor in October 2017 which can be used in a keybinding like so:

{
  "key": "ctrl+p",
  "command": "-workbench.action.quickOpen"
},
{
  "key": "ctrl+p",  // or cmd
  "command": "workbench.action.quickOpenPreviousEditor"
}

这篇关于上一个文件作为quickopen上的第一个条目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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