如何在 Visual Studio Code 中删除代码上方的文件位置栏? [英] How can I remove the file location bar above code in Visual Studio Code?

查看:51
本文介绍了如何在 Visual Studio Code 中删除代码上方的文件位置栏?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何去掉代码上方的小条,它显示我所在的文件以及我所在的文件的位置?我只是不喜欢它的样子.

How do I get rid of the little bar above the code where it shows what file I'm in and where in that file I'm at? I just don't like the way it looks.

推荐答案

这些是最新版本的 VSCode 中添加的面包屑.要在最新版本中禁用它们,您可以导航到您的设置(通过左下方的齿轮图标),然后在用户设置"选项卡下,依次单击工作台"、面包屑",然后取消选中启用"框.

Those are the breadcrumbs added in a recent version of VSCode. To disable them in the latest version, you can navigate to your settings (via the gear icon in the lower left), and under the User Settings tab, click Workbench, then Breadcrumbs, then uncheck the Enabled box.

或者,如果您使用的是 JSON 设置编辑器:

Or if you are using the JSON settings editor:

"breadcrumbs.enabled": false

我相信可能有一个中间版本的 VSCode,其中面包屑可用,但在设置 GUI 实施之前,在这种情况下,步骤将类似,但您必须浏览旧的设置页面并修改正确的行取而代之的是 settings.json.

I believe there may have been an intermediary version of VSCode where breadcrumbs were available but before the settings GUI was implemented, in which case the steps would be similar but you would have to navigate through the old settings page and modify the correct line of settings.json instead.

这篇关于如何在 Visual Studio Code 中删除代码上方的文件位置栏?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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