简体   繁体   English

在VSCode状态栏中隐藏“空格”元素

[英]Hiding “Spaces” element in VSCode status bar

Is it possible to hide "Spaces" element in VSCode status bar? 是否可以在VSCode状态栏中隐藏“空格”元素?

在此处输入图片说明

The only status bar item that can be removed through built-in settings is the feedback icon via the workbench.statusBar.feedback.visible setting. 可以通过内置设置删除的唯一状态栏项目是通过workbench.statusBar.feedback.visible设置返回的反馈图标。

There are open GitHub issues pending, requesting more customization in the status bar. 有待解决的公开GitHub问题,要求在状态栏中进行更多自定义。 Here's one related to the location of the items. 这是与物品位置有关的物品。 And here's another related to the removal of items. 这是与删除项目有关的另一个问题。

Note that the last issue offers a solution in the comments , which recommends that you install the Custom CSS and JS Loader extension, allowing you to target and hide the items via CSS classes. 请注意,最后一期在comment中提供了解决方案 ,建议您安装Custom CSS and JS Loader扩展,从而允许您通过CSS类定位和隐藏项目。

Starting from VSCode 1.36 (June 2019), it is possible to hide any status bar elements (including those provided by extensions) by right-clicking on the status bar and selecting the desired element: 从VSCode 1.36(2019年6月)开始,可以通过右键单击状态栏并选择所需的元素来隐藏任何状态栏元素(包括扩展提供的元素):

从上下文菜单隐藏状态栏元素

The configuration persists across all workspaces. 该配置在所有工作空间中均保持不变。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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