Activitus BarOne of my work colleagues was complaining about the activity bar wasting too much space, so this simply puts icons on the status bar that open the views of the activity bar. You can then hide the activity bar from the View menu... ConfigurationThe buttons are configurable, using The panel views Terminal, Problems, Output and Debug Console can now also be moved to the activity bar. The extension supports these using the names "terminal", "problems", "output" and "debugConsole", again with default icons. These buttons will still work if the panel views are kept in the default location, but the views will not hide again if The colour of the active and inactive buttons can also be specified using If required, the position of the icons can be adjusted by changing the value of Now that custom view containers are available, the configuration has been extended to support this. To add a button for a custom view, you'll need to find the name of the view name. This is normally shown in the Feature Contributions tab of the extension page in the extensions view. Once you have the name of the view, choose an icon (see known issues below) from the list of codicons and add an entry to
By default, clicking a button again will toggle the sidebar so that it is not visible. If you want to disable this behaviour, set Normally configuration in your workspace settings overwrites your user settings. If you want to have a base set of buttons in your user settings and then have additional buttons on a per workspace basis, set One last option is SeparatorsYou can add spaces between buttons by including an empty object (
Task ButtonsButtons can also be configured to start tasks. Just use "task.task-label". For example, this:
will create a button with the tools icons which starts the "build" task when the button is clicked. Command ButtonsButtons can also be configured to run arbitrary commands. Use "command.command-name". For example,
will create a button which reloads the window. Settings ButtonYou can also add a button which opens the settings GUI using
Note: Buttons can all have optional tooltips and labels specified. Labels are added to the right of the icon. Default Configuration
Source code counterYou can also show a counter which is displayed next to the SCM view button. This attempts to emulate the badge that is shown in the activity bar. This can be enabled by settting:
Note: Some users have reported that this interferes with VSCode dialogs. KeybindingsYou may want to override the default keybindings in order to use them with activitusbar. This will also allow the highlighted icon to stay in sync if you use keyboard shortcuts to change view. Note: You may also have to disable the default keyboard bindings.
Known IssuesBecause there is no way to know when a view has been selected, the currently active view will not stay in sync if the normal activity bar is used, or the view is changed using the Open View... from the View menu. If Find in Files is selected from the Edit Menu, again, the currently active view will become out of sync. InstallingYou can install the latest version of the extension via the Visual Studio Marketplace here. Alternatively, open Visual Studio code, press
Source CodeThe source code is available on GitHub here. |