简体   繁体   中英

How can I remove the file location bar above code in 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.

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.

Or if you are using the JSON settings editor:

"breadcrumbs.enabled": false

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.

I think what you're looking for is this -

 "workbench.editor.showTabs": false

Add that to your settings.json, it should work immediately

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM