Activity Bar width in Visual Studio Code

心已入冬 提交于 2019-12-03 05:25:59

You can also use the negative zoom trick in settings.json:

{
  "window.zoomLevel": -1,
  "editor.fontSize": 13,
  "terminal.integrated.fontSize": 16,
}

The whole editor will get smaller so you need to compensate editor.fontSize and terminal.integrated.fontSize

This allows for smaller activity bar (unfortunately it acts on everything (icons size, font-size ...)) but I much prefer this than the defaults.

I recommend the excellent extension Activitus Bar. It recreate the activity bar buttons on the status bar:

Then, you just hide this enormous, gigantic activity bar. Happying code!

Not solving your exact question but another good solution...

  • Install the Customize UI extension.
  • In your settings.json add "workbench.useExperimentalGridLayout": true,.
  • In Settings (UI) go to the Customize UI settings and set Activity Bar to "bottom".
  • Completely close VSCode and reopen.

Wanted to add more to Akelian answer:

On Windows/Linux - File > Preferences > Settings
On macOS - Code > Preferences > Settings

{
  "window.zoomLevel": -1,
  "editor.fontSize": 13,
  "terminal.integrated.fontSize": 16,
  "workbench.activityBar.visible": false,
}

Setting false to "workbench.activityBar.visible" removes the sidebar completely

https://code.visualstudio.com/docs/getstarted/settings

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!