VSCode 防止文件资源管理器跳转 [英] VSCode prevent file Explorer from jumping

查看:32
本文介绍了VSCode 防止文件资源管理器跳转的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法防止 VSCode 在关闭选项卡时跳到所有地方?它会跳转到所选选项卡的位置,但是在打开各种文件以在库中检查时,这非常令人迷惑.

Is there a way to prevent VSCode from jumping all over the place when closing a tab? It jumps to the location of the selected tab, but this is very disorienting when opening various files to inspect within a lib.

推荐答案

此行为由以下设置控制:

This behaviour is controlled by the following setting:

"explorer.autoReveal": false

目前浏览器中没有保留选中文件的设置,但是这个至少可以保持滚动位置固定,防止跳转".

There is currently no setting for keeping the selected file in the explorer, but this one at least keeps the scroll position fixed and prevents the "jumping".

更新

在当前版本中,相同的设置现在会保留所选文件.

In current versions, the same setting now keeps the selected file.

这篇关于VSCode 防止文件资源管理器跳转的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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